Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. DarkRP.createEntity("Bottle", {
  2. ent = "mn_bottle",
  3. model = "models/props_junk/glassjug01.mdl",
  4. price = 200,
  5. max = 5,
  6. cmd = "buybottle",
  7. category = "Moonshine",
  8. allowed = {TEAM_MOON},
  9. customCheck = function(ply) return
  10. table.HasValue({TEAM_MOON}, ply:Team())
  11. end,
  12. CustomCheckFailMsg = "You aren't a moonshiner",
  13. })
  14.  
  15. DarkRP.createEntity("Corn Seed", {
  16. ent = "mn_cseed",
  17. model = "models/props/cs_italy/orange.mdl",
  18. price = 100,
  19. max = 5,
  20. cmd = "buycorns",
  21. category = "Moonshine",
  22. allowed = {TEAM_MOON},
  23. customCheck = function(ply) return
  24. table.HasValue({TEAM_MOON}, ply:Team())
  25. end,
  26. CustomCheckFailMsg = "You aren't a moonshiner",
  27. })
  28.  
  29. DarkRP.createEntity("Dirt", {
  30. ent = "mn_dirt",
  31. model = "models/soil/soil.mdl",
  32. price = 100,
  33. max = 5,
  34. cmd = "buydirt",
  35. category = "Moonshine",
  36. allowed = {TEAM_MOON},
  37. customCheck = function(ply) return
  38. table.HasValue({TEAM_MOON}, ply:Team())
  39. end,
  40. CustomCheckFailMsg = "You aren't a moonshiner",
  41. })
  42.  
  43.  
  44. DarkRP.createEntity("Distillery", {
  45. ent = "mn_distillery",
  46. model = "models/bronze_barrel/bronze_barrel.mdl",
  47. price = 100,
  48. max = 1,
  49. cmd = "buydis",
  50. category = "Moonshine",
  51. allowed = {TEAM_MOON},
  52. customCheck = function(ply) return
  53. table.HasValue({TEAM_MOON}, ply:Team())
  54. end,
  55. CustomCheckFailMsg = "You aren't a moonshiner",
  56. })
  57.  
  58.  
  59.  
  60. DarkRP.createEntity("Barrel", {
  61. ent = "mn_barrel",
  62. model = "models/wood_barrel/wood_barrel.mdl",
  63. price = 100,
  64. max = 5,
  65. cmd = "buybar",
  66. category = "Moonshine",
  67. allowed = {TEAM_MOON},
  68. customCheck = function(ply) return
  69. table.HasValue({TEAM_MOON}, ply:Team())
  70. end,
  71. CustomCheckFailMsg = "You aren't a moonshiner",
  72. })
  73.  
  74. DarkRP.createEntity("Harvest Corn", {
  75. ent = "mn_ccorn",
  76. model = "models/plants/corn_bunch.mdl",
  77. price = 100,
  78. max = 5,
  79. cmd = "buycornn",
  80. category = "Moonshine",
  81. allowed = {TEAM_MOON},
  82. customCheck = function(ply) return
  83. table.HasValue({TEAM_MOON}, ply:Team())
  84. end,
  85. CustomCheckFailMsg = "You aren't a moonshiner",
  86. })
  87.  
  88. DarkRP.createEntity("Harvest Grain", {
  89. ent = "mn_ggrain",
  90. model = "models/plants/wheat_bunch.mdl",
  91. price = 100,
  92. max = 5,
  93. cmd = "buygrainn",
  94. category = "Moonshine",
  95. allowed = {TEAM_MOON},
  96. customCheck = function(ply) return
  97. table.HasValue({TEAM_MOON}, ply:Team())
  98. end,
  99. CustomCheckFailMsg = "You aren't a moonshiner",
  100. })
  101.  
  102. DarkRP.createEntity("Oxidation Pool", {
  103. ent = "mn_bucket",
  104. model = "models/wood_bucket/wood_bucket.mdl",
  105. price = 100,
  106. max = 5,
  107. cmd = "buypool",
  108. category = "Moonshine",
  109. allowed = {TEAM_MOON},
  110. customCheck = function(ply) return
  111. table.HasValue({TEAM_MOON}, ply:Team())
  112. end,
  113. CustomCheckFailMsg = "You aren't a moonshiner",
  114. })
  115.  
  116.  
  117. DarkRP.createEntity("Pot", {
  118. ent = "mn_pot",
  119. model = "models/pot/pot_nodirt.mdl",
  120. price = 100,
  121. max = 5,
  122. cmd = "buypot",
  123. category = "Moonshine",
  124. allowed = {TEAM_MOON},
  125. customCheck = function(ply) return
  126. table.HasValue({TEAM_MOON}, ply:Team())
  127. end,
  128. CustomCheckFailMsg = "You aren't a moonshiner",
  129. })
  130.  
  131. DarkRP.createEntity("Water", {
  132. ent = "mn_water",
  133. model = "models/props_junk/big_water_bottle.mdl",
  134. price = 100,
  135. max = 5,
  136. cmd = "buyptt",
  137. category = "Moonshine",
  138. allowed = {TEAM_MOON},
  139. customCheck = function(ply) return
  140. table.HasValue({TEAM_MOON}, ply:Team())
  141. end,
  142. CustomCheckFailMsg = "You aren't a moonshiner",
  143. })
  144.  
  145. -- --------------------------------------------------------------------------
  146.  
  147. -- Jobs
  148.  
  149.  
  150. TEAM_MOON = DarkRP.createJob("Moonshine Brewer", {
  151. color = Color(60, 255, 209, 255),
  152. model = {"models/player/hostage/hostage_04.mdl"},
  153. description = [[Cook Moonshine for a Living!]],
  154. weapons = {},
  155. command = "moonshine",
  156. max = 4,
  157. salary = 75,
  158. admin = 0,
  159. vote = false,
  160. hasLicense = false,
  161. candemote = true,
  162. category = "Criminals"
  163. })
  164.  
  165. --------------------------------------------------------------------------------
  166.  
  167. Categories
  168.  
  169.  
  170.  
  171. DarkRP.createCategory{
  172. name = "Moonshine",
  173. categorises = "entities",
  174. startExpanded = true,
  175. color = Color(35, 220, 245, 255),
  176. canSee = function(ply) return table.HasValue({TEAM_MOON}, ply:Team()) end,
  177. sortOrder = 1
  178. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement