Advertisement
Guest User

[ERROR] addons/darkrpmodification-master/lua/darkrp_customth

a guest
Jan 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.11 KB | None | 0 0
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4. This file contains your custom jobs.
  5. This file should also contain jobs from DarkRP that you edited.
  6.  
  7. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  8. Once you've done that, copy and paste the job to this file and edit it.
  9.  
  10. The default jobs can be found here:
  11. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  12.  
  13. For examples and explanation please visit this wiki page:
  14. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  15.  
  16. Add your custom jobs under the following line:
  17. ---------------------------------------------------------------------------]]
  18. TEAM_MILCOMM = DarkRP.createJob("Military Commander", {
  19. color = Color(1, 73, 8, 255),
  20. model = {"models/player/combine_soldier.mdl"},
  21. description = [[You are a military commander (TBD)]],
  22. weapons = {"m9k_ak47"},
  23. command = "commander",
  24. max = 1,
  25. salary = 250,
  26. admin = 0,
  27. vote = true,
  28. hasLicense = true,
  29. candemote = true,
  30. chief = true,
  31. category = "Military"
  32. })
  33.  
  34. TEAM_MILSARG = DarkRP.createJob("Military Sergeant", {
  35. color = Color(11, 127, 35, 255),
  36. model = {"models/player/combine_soldier.mdl"},
  37. description = [[You are a military Sergeant (TBD)]],
  38. weapons = {"m9k_ak74"},
  39. command = "sergeant",
  40. max = 2,
  41. salary = 200,
  42. admin = 0,
  43. vote = true,
  44. hasLicense = true,
  45. candemote = true,
  46. chief = false,
  47. category = "Military"
  48. })
  49.  
  50. TEAM_MILSARG = DarkRP.createJob("Military Colonel", {
  51. color = Color(11, 127, 35, 255),
  52. model = {"models/player/combine_soldier.mdl"},
  53. description = [[You are a military Colonel (TBD)]],
  54. weapons = {"m9k_usp"},
  55. command = "colonel",
  56. max = 2,
  57. salary = 200,
  58. admin = 0,
  59. vote = true,
  60. hasLicense = true,
  61. candemote = true,
  62. chief = false,
  63. category = "Military"
  64. })
  65.  
  66. TEAM_THIEF = DarkRP.createJob("Thief", {
  67. color = Color(0, 0, 0, 255),
  68. model = "models/player/phoenix.mdl",
  69. description = [[You are a thief, rob people, lockpick their house and steal their plants and illegal printers.]],
  70. weapons = {"lockpick"}, -- You may wanna find a pickpocket swep and add it here.
  71. command = "thief",
  72. max = 6,
  73. salary = 65,
  74. admin = 0,
  75. vote = false,
  76. hasLicense = false,
  77. category = "Criminals",
  78. })
  79.  
  80. TEAM_LIGHTDEALER = DarkRP.createJob("Light Gun Dealer", {
  81. color = Color(11, 127, 35, 255),
  82. model = {"models/player/arctic.mdl"},
  83. description = [[You are a Light Gun Dealer, Sell low powered weaponry to people. ]],
  84. weapons = {"m9k_usp","Inventory"},
  85. command = "lightgundealer",
  86. max = 2,
  87. salary = 25,
  88. admin = 0,
  89. vote = false,
  90. hasLicense = false,
  91. candemote = true,
  92. chief = false,
  93. category = "Dealers"
  94. })
  95.  
  96. TEAM_HEAVYDEALER = DarkRP.createJob("Heavy Gun Dealer", {
  97. color = Color(11, 127, 35, 255),
  98. model = {"models/player/arctic.mdl"},
  99. description = [[You are a Heavy Gun Dealer, Sell high powered weaponry to people. (TBD)]],
  100. weapons = {"m9k_usp"},
  101. command = "heavygundealer",
  102. max = 2,
  103. salary = 25,
  104. admin = 0,
  105. vote = false,
  106. hasLicense = false,
  107. candemote = true,
  108. chief = false,
  109. category = "Dealers"
  110. })
  111.  
  112. TEAM_BLACKMARKETDEALER = DarkRP.createJob("Black Market Dealer", {
  113. color = Color(11, 127, 35, 255),
  114. model = {"models/player/t_guerilla.mdl"},
  115. description = [[You are a Black Market Dealer, Sell illegal items to people. (TBD)]],
  116. weapons = {},
  117. command = "blackmarketdealer",
  118. max = 2,
  119. salary = 25,
  120. admin = 0,
  121. vote = false,
  122. hasLicense = false,
  123. candemote = true,
  124. chief = false,
  125. category = "Dealers"
  126. })
  127.  
  128. TEAM_SS = DarkRP.createJob("Secret Service", {
  129. color = Color(100, 20, 20, 255),
  130. model = "models/player/ct_urban.mdl",
  131. description = [[You are responsible for protecting the mayor.
  132. Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
  133. weapons = {"m9k_usp", "stunstick", "weaponchecker"},
  134. command = "ss",
  135. max = 2,
  136. salary = 65,
  137. admin = 0,
  138. vote = true,
  139. hasLicense = false,
  140. ammo = {
  141. ["pistol"] = 60,
  142. },
  143. category = "Civil Protection",
  144. })
  145.  
  146. TEAM_SWAT = DarkRP.createJob("Swat", {
  147. color = Color(25, 25, 170, 255),
  148. model = {"models/player/swat.mdl"},
  149. description = [[The protector of every citizen that lives in the city.
  150. You have the power to arrest criminals and protect innocents.
  151. Hit a player with your arrest baton to put them in jail.
  152. Bash a player with a stunstick and they may learn to obey the law.
  153. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  154. The Battering Ram can also unfreeze frozen props (if enabled).
  155. Type /wanted <name> to alert the public to the presence of a criminal.]],
  156. weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
  157. command = "Swat",
  158. max = 4,
  159. salary = 85,
  160. admin = 0,
  161. vote = true,
  162. hasLicense = true,
  163. help = {
  164. "Please don't abuse your job",
  165. "When you arrest someone they are auto transported to jail.",
  166. "They are auto let out of jail after some time",
  167. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  168. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
  169. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
  170. "Type /jailpos to set the jail position"
  171. },
  172. category = "Civil Protection",
  173. })
  174.  
  175. TEAM_ADMIN = DarkRP.createJob("SuperAdmin On Duty", {
  176. color = Color(170, 0, 0, 255),
  177. model = "models/player/swat.mdl",
  178. description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
  179. It's up to you to patrol and respond to admin calls.]],
  180. weapons = {},
  181. command = "saod",
  182. max = 0,
  183. salary = 0,
  184. admin = 0,
  185. vote = false,
  186. hasLicense = false,
  187. customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end,
  188.  
  189. })
  190.  
  191. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  192. color = Color(115, 0, 0, 255),
  193. model = "models/player/leet.mdl",
  194. description = [[You make your living off of other's blood. You are a wanted man on the run. If you want to make a living, you have to be sneaky.]],
  195. weapons = {"m9k_knife", "m9k_usp"},
  196. command = "hitman",
  197. max = 3,
  198. salary = 65,
  199. admin = 0,
  200. vote = true,
  201. hasLicense = false,
  202. category = "Criminals",
  203. })
  204.  
  205. TEAM_GUARD = DarkRP.createJob("Guard", {
  206. color = Color(0,200,50,255),
  207. model = "models/player/barney.mdl",
  208. description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
  209. weapons = {"m9k_colt1911"},
  210. command = "guard",
  211. max = 4,
  212. salary = 25,
  213. admin = 0,
  214. vote = false,
  215. hasLicense = true,
  216. category = "Citizens",
  217. })
  218. --[[---------------------------------------------------------------------------
  219. Define which team joining players spawn into and what team you change to if demoted
  220. ---------------------------------------------------------------------------]]
  221. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  222. --[[---------------------------------------------------------------------------
  223. Define which teams belong to civil protection
  224. Civil protection can set warrants, make people wanted and do some other police related things
  225. ---------------------------------------------------------------------------]]
  226. GAMEMODE.CivilProtection = {
  227. [TEAM_POLICE] = true,
  228. [TEAM_CHIEF] = true,
  229. [TEAM_MAYOR] = true,
  230. }
  231. --[[---------------------------------------------------------------------------
  232. Jobs that are hitmen (enables the hitman menu)
  233. ---------------------------------------------------------------------------]]
  234. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement