fork download
  1. BM2CONFIG = {}
  2.  
  3. //Setting this to false will disable the generator from making sound.
  4. BM2CONFIG.GeneratorsProduceSound = true
  5.  
  6. //Dollas a bitcoins sells for. Dont make this too large or it will be too easy to make money
  7. BM2CONFIG.BitcoinValue = 800
  8.  
  9. //This is a value that when raising or lowering will effect the speed of all bitminers.
  10. //This is a balanced number and you should only change it if you know you need to. Small increments make big differences
  11. BM2CONFIG.BaseSpeed = 0.004
  12.  
  13. //The higher this number, the faster the generator will loose fuel.
  14. //You can use this to balance out more so they need to buy fuel more frequently
  15. BM2CONFIG.BaseFuelDepletionRate = 0.4
  16.  
  17.  
  18.  
  19.  
  20. hook.Add("PostGamemodeLoaded", "BM2.SetupEntities", function()
  21. DarkRP.createCategory{
  22. name = "Bitminers 2",
  23. categorises = "entities",
  24. startExpanded = false,
  25. color = Color(120, 120, 255, 255),
  26. sortOrder = 1,
  27. }
  28.  
  29. DarkRP.createEntity("Bitminer Server", {
  30. ent = "bm2_bitminer_server",
  31. model = "models/bitminers2/bitminer_2.mdl",
  32. price = 70000,
  33. max = 8,
  34. cmd = "buybitminerserver",
  35. category = "Bitminers 2"
  36. })
  37.  
  38. DarkRP.createEntity("VIP Bitminer Server", {
  39. ent = "bm2_bitminer_server",
  40. model = "models/bitminers2/bitminer_2.mdl",
  41. price = 50000,
  42. max = 8,
  43. cmd = "buyvipbitminerserver",
  44. category = "Bitminers 2",
  45. customCheck = function(ply) return CLIENT or
  46. table.HasValue({"T-Mod", "Mod", "ModVIP", "admin", "Head-Mod", "Senior Admin", "Head-Admin", "superadmin", "Co-Owner", "Owner", "VIP"}, ply:GetNWString("usergroup"))
  47. end,
  48. CustomCheckFailMsg = "This job is for VIP only!",
  49. })
  50.  
  51. DarkRP.createEntity("Bitminer Rack", {
  52. ent = "bm2_bitminer_rack",
  53. model = "models/bitminers2/bitminer_rack.mdl",
  54. price = 50000,
  55. max = 1,
  56. cmd = "buybitminerrack",
  57. category = "Bitminers 2"
  58. })
  59.  
  60. DarkRP.createEntity("VIP Bitminer Rack", {
  61. ent = "bm2_bitminer_rack",
  62. model = "models/bitminers2/bitminer_rack.mdl",
  63. price = 30000,
  64. max = 1,
  65. cmd = "buyvipbitminerrack",
  66. category = "Bitminers 2",
  67. customCheck = function(ply) return CLIENT or
  68. table.HasValue({"T-Mod", "Mod", "ModVIP", "admin", "Head-Mod", "Senior Admin", "Head-Admin", "superadmin", "Co-Owner", "Owner", "VIP"}, ply:GetNWString("usergroup"))
  69. end,
  70. CustomCheckFailMsg = "This job is for VIP only!",
  71. })
  72.  
  73. DarkRP.createEntity("Extension Lead", {
  74. ent = "bm2_extention_lead",
  75. model = "models/bitminers2/bitminer_plug_3.mdl",
  76. price = 500,
  77. max = 3,
  78. cmd = "buybitminerextension",
  79. category = "Bitminers 2"
  80. })
  81.  
  82. DarkRP.createEntity("Power Lead", {
  83. ent = "bm2_power_lead",
  84. model = "models/bitminers2/bitminer_plug_2.mdl",
  85. price = 500,
  86. max = 10,
  87. cmd = "buybitminerpowerlead",
  88. category = "Bitminers 2"
  89. })
  90.  
  91. 123DarkRP.createEntity("Generator", {
  92. ent = "bm2_generator",
  93. model = "models/bitminers2/generator.mdl",
  94. price = 6000,
  95. max = 3,
  96. cmd = "buybitminergenerator",
  97. category = "Bitminers 2"
  98. })
  99.  
  100. DarkRP.createEntity("Fuel", {
  101. ent = "bm2_fuel",
  102. model = "models/props_junk/gascan001a.mdl",
  103. price = 1000,
  104. max = 2,
  105. cmd = "buybitminerfuel",
  106. category = "Bitminers 2"
  107. })
  108. end)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
BM2CONFIG = {}
^
1 error
stdout
Standard output is empty