Advertisement
Guest User

jobs.lua

a guest
Sep 17th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.50 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_POLICE = DarkRP.createJob("Civil Protection", {
  19. color = Color(224, 224, 224),
  20. model = {"models/player/police.mdl"},
  21. description = [[You are a Civil Protection Cop. Arrest people who are doing things illegal and make sure the Mayor is protected at all times. Do not RDA!!]],
  22. weapons = {"m9k_glock", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "pocket", "keys", "darkrp_handcuffs"},
  23. command = "cp",
  24. max = 6,
  25. salary = 30,
  26. admin = 0,
  27. vote = true,
  28. hasLicense = true,
  29. category = "Civil Protection"
  30. customCheck = function(ply) return ply:GetUserGroup() == "nil" end -- The extra check function. Enter nil or nothing to not have an extra check
  31. })
  32.  
  33. TEAM_DOGE = DarkRP.createJob("Pet", {
  34. color = Color(224, 224, 224),
  35. model = {"models/doge_player/doge_player.mdl"},
  36. description = [[You are a Pet. You bark at people and if someone hits you, you bite them to death You cant base unless with someone else. Pets are not allowed guns.]],
  37. weapons = {"weapon_dogswep", "keys", "pocket"},
  38. command = "pet",
  39. max = 5,
  40. salary = 15,
  41. admin = 0,
  42. vote = false,
  43. hasLicense = false,
  44. category = "Citizens"
  45. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  46. })
  47.  
  48. TEAM_PDUBS = DarkRP.createJob("Master Lemon", {
  49. color = Color(224, 224, 224),
  50. model = {"models/_TailS_ Models/Characters/Sonic Heroes/Sonic/Sonic.mdl"},
  51. description = [[I am the king. Bow down to me!]],
  52. weapons = {"pocket", "keys", "staff_lockpick", "weapon_speedhack", "ttt_awp_dragonlore"},
  53. command = "masterlemon",
  54. max = 1,
  55. salary = 0,
  56. admin = 2,
  57. vote = false,
  58. hasLicense = true,
  59. category = "Admin",
  60. customCheck = function(ply) return ply:GetUserGroup() == "owner" end
  61. CustomCheckFailMsg = "You do not have the required usergroup!"
  62. })
  63.  
  64. TEAM_BLACKMARKET = DarkRP.createJob("Black Market Dealer", {
  65. color = Color(224, 224, 224),
  66. model = {"models/player/eli.mdl"},
  67. description = [[You are a black market dealer. You sell illegal explosives and weapons. You are AOS so stay hidden.]],
  68. weapons = {"keys", "pocket"},
  69. command = "blackmarketdealer",
  70. max = 2,
  71. salary = 15,
  72. admin = 0,
  73. vote = false,
  74. hasLicense = false,
  75. category = "Criminals"
  76. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  77. })
  78.  
  79. TEAM_STAFF = DarkRP.createJob("Staff on Duty", {
  80. color = Color(224, 224, 224),
  81. model = {"models/player/anon.mdl"},
  82. description = [[Staff job.]],
  83. weapons = {"weapon_keypadchecker", "arrest_stick", "door_ram", "unarrest_stick", "keys", "pocket", "staff_lockpick", "weapon_speedhack",},
  84. command = "admin",
  85. max = 0,
  86. salary = 1000,
  87. admin = 1,
  88. vote = false,
  89. hasLicense = true,
  90. category = "Admin",
  91. customCheck = function(ply) return ply:GetUserGroup() == "admin" == "superadmin" end -- The extra check function. Enter nil or nothing to not have an extra check
  92. CustomCheckFailMsg = "You do not have the required usergroup!"
  93. })
  94.  
  95. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  96. color = Color(224, 224, 224),
  97. model = {"models/player/monk.mdl"},
  98. description = [[You are a gun dealer. You provide people with weapons. You must make a gun shop and sell weapons. Gun dealers can not raid or counter-raid.]],
  99. weapons = {"m9k_hk45", "keys", "pocket"},
  100. command = "gundealer",
  101. max = 2,
  102. salary = 30,
  103. admin = 0,
  104. vote = false,
  105. hasLicense = true,
  106. category = "Citizens"
  107. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  108. })
  109.  
  110. TEAM_THIEF = DarkRP.createJob("Thief", {
  111. color = Color(224, 224, 224),
  112. model = {"models/player/phoenix.mdl"},
  113. description = [[You are a thief. You steal other peoples stuff without getting caught.]],
  114. weapons = {"lockpick", "keypad_cracker", "keys", "pocket"},
  115. command = "thief",
  116. max = 8,
  117. salary = 15,
  118. admin = 0,
  119. vote = false,
  120. hasLicense = false,
  121. category = "Criminals"
  122. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  123. })
  124.  
  125. TEAM_HOBO = DarkRP.createJob("Hobo", {
  126. color = Color(224, 224, 224),
  127. model = {"models/player/corpse1.mdl"},
  128. description = [[You are a hobo. You have no home and you beg for money on the streets. You can't Build inside homes or base, but you can build stuff outside.]],
  129. weapons = {"fists", "pocket", "keys", "bugbait"},
  130. command = "hobo",
  131. max = 5,
  132. salary = 0,
  133. admin = 0,
  134. vote = false,
  135. hasLicense = false,
  136. category = "Citizens"
  137. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  138. })
  139.  
  140. TEAM_MEDIC = DarkRP.createJob("Medic", {
  141. color = Color(224, 224, 224),
  142. model = {"models/player/medic07.mdl"},
  143. description = [[You are a medic. You go around town healing people who need it, or if you want, create a hospital. You are allowed to make people pay for health.]],
  144. weapons = {"med_kit", "keys", "pocket"},
  145. command = "medic",
  146. max = 2,
  147. salary = 30,
  148. admin = 0,
  149. vote = false,
  150. hasLicense = false,
  151. category = "Citizens"
  152. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  153. })
  154.  
  155. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  156. color = Color(224, 224, 224),
  157. model = {"models/player/Group01/female_01.mdl", "models/player/Group01/male_07.mdl"},
  158. description = [[You are a citizen. You are the population of the city, who make homes and comfort themselves as the city does its things. You can't raid, but you can counter-raid.]],
  159. weapons = {"keys", "pocket"},
  160. command = "citizen",
  161. max = 0,
  162. salary = 30,
  163. admin = 0,
  164. vote = false,
  165. hasLicense = false,
  166. category = "Citizens"
  167. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  168. })
  169.  
  170. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  171. color = Color(224, 224, 224),
  172. model = {"models/player/combine_soldier.mdl"},
  173. description = [[You are the police Chief! You command the police team and guide them to their job under the command of the mayor!]],
  174. weapons = {"m9k_tec9", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "pocket", "m9k_hk45", "keys"},
  175. command = "cpchief",
  176. max = 1,
  177. salary = 30,
  178. admin = 0,
  179. vote = true,
  180. hasLicense = true,
  181. category = "Civil Protection"
  182. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  183. })
  184.  
  185. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  186. color = Color(224, 224, 224),
  187. model = {"models/player/breen.mdl"},
  188. description = [[You are the mayor! You make the rules of this town and make sure people are doing their job. You command the whole police force and they are there to protect you.]],
  189. weapons = {"keys", "m9k_deagle", "pocket",},
  190. command = "mayor",
  191. max = 1,
  192. salary = 30,
  193. admin = 0,
  194. vote = true,
  195. hasLicense = true,
  196. category = "Civil Protection"
  197. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  198. })
  199.  
  200. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  201. color = Color(224, 224, 224),
  202. model = {"models/player/leet.mdl"},
  203. description = [[You are a hitman. You get payed for completing hits killing players that you have been asked to kill.]],
  204. weapons = {"keys", "m9k_deagle", "pocket"},
  205. command = "hitman",
  206. max = 2,
  207. salary = 30,
  208. admin = 0,
  209. vote = false,
  210. hasLicense = true,
  211. category = "Criminals"
  212. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  213. })
  214.  
  215. TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
  216. color = Color(224, 224, 224),
  217. model = {"models/player/hostage/hostage_02.mdl", "models/player/hostage/hostage_04.mdl"},
  218. description = [[You are a kidnapper. You kidnap people without them looking and hold them and take their money, or advert a randsom for them! Mwahahahahaa!!]],
  219. weapons = {"keys", "weapon_cuff_rope", "pocket", "weapon_cuff_plastic"},
  220. command = "kidnapper",
  221. max = 2,
  222. salary = 15,
  223. admin = 0,
  224. vote = false,
  225. hasLicense = false,
  226. category = "Criminals"
  227. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  228. })
  229.  
  230. TEAM_LUKE = DarkRP.createJob("Luke Skywalker", {
  231. color = Color(224, 224, 224),
  232. model = {"models/player/luke_skywalker.mdl"},
  233. description = [[You are Luke Skywalker. You must kill your dad and save the city against him.]],
  234. weapons = {"keys", "weapon_lightsaber", "pocket"},
  235. command = "lukeskywalker",
  236. max = 1,
  237. salary = 30,
  238. admin = 0,
  239. vote = false,
  240. hasLicense = false,
  241. category = "Heroes and Villains"
  242. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  243. })
  244.  
  245. TEAM_DARTHVADER = DarkRP.createJob("Darth Vader", {
  246. color = Color(224, 224, 224),
  247. model = {"models/player/darth_vader.mdl"},
  248. description = [[You are Darth Vader. You oppose your son, Luke. You must kill him.]],
  249. weapons = {"keys", "weapon_lightsaber", "pocket"},
  250. command = "darthvader",
  251. max = 1,
  252. salary = 30,
  253. admin = 0,
  254. vote = false,
  255. hasLicense = false,
  256. category = "Heroes and Villains"
  257. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  258. })
  259.  
  260. TEAM_SPEEDSTER = DarkRP.createJob("The Flash", {
  261. color = Color(224, 224, 224),
  262. model = {"models/dusty/playermodels/flash/flash.mdl"},
  263. description = [[You are the Flash. You stop crimes in action using your super speeds and agility.]],
  264. weapons = {"keys", "weapon_speedhack", "pocket", "fists"},
  265. command = "flash",
  266. max = 1,
  267. salary = 30,
  268. admin = 0,
  269. vote = false,
  270. hasLicense = false,
  271. category = "Heroes and Villains"
  272. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  273. })
  274.  
  275. TEAM_CLOAKER = DarkRP.createJob("Cloaker", {
  276. color = Color(224, 224, 224),
  277. model = {"models/mark2580/payday2/pd2_cloaker_player.mdl"},
  278. description = [[You are a cloaker. You go invisible and sneak into bases unseen.]],
  279. weapons = {"keys", "invisibility_cloak", "pocket", "m9k_mp7", "lockpick", "keypad_cracker"},
  280. command = "cloaker",
  281. max = 2,
  282. salary = 30,
  283. admin = 0,
  284. vote = false,
  285. hasLicense = false,
  286. category = "VIP",
  287. customCheck = function(ply) return ply:GetUserGroup() == "vip" end -- The extra check function. Enter nil or nothing to not have an extra check
  288. CustomCheckFailMsg = "You do not have the required usergroup!"
  289. })
  290.  
  291. TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", {
  292. color = Color(224, 224, 224),
  293. model = {"models/player/guerilla.mdl"},
  294. description = [[You are a Pro Thief. You steal other people's stuff without getting caught, but this time you have better skills to it!]],
  295. weapons = {"keys", "pocket", "prokeypadcracker", "pro_lockpick"},
  296. command = "prothief",
  297. max = 4,
  298. salary = 30,
  299. admin = 0,
  300. vote = false,
  301. hasLicense = false,
  302. category = "VIP",
  303. customCheck = function(ply) return ply:GetUserGroup() == "vip" end -- The extra check function. Enter nil or nothing to not have an extra check
  304. CustomCheckFailMsg = "You do not have the required usergroup!"
  305. })
  306.  
  307. TEAM_SWAT = DarkRP.createJob("SWAT", {
  308. color = Color(224, 224, 224),
  309. model = {"models/player/swat.mdl"},
  310. description = [[You are a SWAT. You protect the city along with the other Civil Protection, but you are certified to have alot more skills.]],
  311. weapons = {"keys", "pocket", "m9k_vector", "arrest_stick", "unarrest_stick", "stunstick", "darkrp_handcuffs", "weaponchecker", "door_ram"},
  312. command = "swat",
  313. max = 3,
  314. salary = 30,
  315. admin = 0,
  316. vote = true,
  317. hasLicense = false,
  318. category = "Civil Protection"
  319. customCheck = function(ply) return ply:GetUserGroup() == "vip" end
  320. })
  321.  
  322. TEAM_HOTEL = DarkRP.createJob("Hotel Manager", {
  323. color = Color(224, 224, 224),
  324. model = {"models/player/gman_high.mdl"},
  325. description = [[You are a Hotel Manager. You make money by making people pay to live in a apartment.]],
  326. weapons = {"keys", "pocket"},
  327. command = "hotelmanager",
  328. max = 1,
  329. salary = 30,
  330. admin = 0,
  331. vote = false,
  332. hasLicense = false,
  333. category = "Citizens"
  334. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  335. })
  336.  
  337. TEAM_BLOODZLEADER = DarkRP.createJob("Bloodz Leader", {
  338. color = Color(224, 224, 224),
  339. model = {"models/player/bloodz/slow_1.mdl"},
  340. description = [[You are the Bloodz leader. You lead Bloodz and have gang wars with Crispz. /advert gangwar]],
  341. weapons = {"keys", "pocket", "m9k_deagle"},
  342. command = "bloodzleader",
  343. max = 1,
  344. salary = 15,
  345. admin = 0,
  346. vote = true,
  347. hasLicense = false,
  348. category = "Criminals"
  349. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  350. })
  351.  
  352. TEAM_CRISPZLEADER = DarkRP.createJob("Crispz Leader", {
  353. color = Color(224, 224, 224),
  354. model = {"models/player/crispz/slow_1.mdl"},
  355. description = [[You are the Crispz leader. You lead Crispz and have gang wars with Bloodz. /advert gangwar]],
  356. weapons = {"keys", "pocket", "m9k_deagle"},
  357. command = "crispzleader",
  358. max = 1,
  359. salary = 15,
  360. admin = 0,
  361. vote = true,
  362. hasLicense = false,
  363. category = "Criminals"
  364. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  365. })
  366.  
  367. TEAM_BLOODZMEMBER = DarkRP.createJob("Bloodz Member", {
  368. color = Color(224, 224, 224),
  369. model = {"models/player/bloodz/slow_2.mdl"},
  370. description = [[You are a member of Bloodz. You base with the rest of Bloodz and help in gang wars between you and Crispz.]],
  371. weapons = {"keys", "pocket"},
  372. command = "bloodzmember",
  373. max = 5,
  374. salary = 15,
  375. admin = 0,
  376. vote = false,
  377. hasLicense = false,
  378. category = "Criminals"
  379. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  380. })
  381.  
  382. TEAM_CRISPZMEMBER = DarkRP.createJob("Crispz Member", {
  383. color = Color(224, 224, 224),
  384. model = {"models/player/crispz/slow_2.mdl"},
  385. description = [[You are a member of Crispz. You base with the rest of Crispz and help in gang wars between you and Bloodz.]],
  386. weapons = {"keys", "pocket"},
  387. command = "crispzmember",
  388. max = 1,
  389. salary = 15,
  390. admin = 0,
  391. vote = false,
  392. hasLicense = false,
  393. category = "Criminals"
  394. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  395. })
  396.  
  397. TEAM_METH = DarkRP.createJob("Meth Cook", {
  398. color = Color(224, 224, 224),
  399. model = {"models/player/kleiner.mdl"},
  400. description = [[You are a Meth Cook. You make meth and sell it for money.]],
  401. weapons = {"keys", "pocket"},
  402. command = "methcook",
  403. max = 8,
  404. salary = 30,
  405. admin = 0,
  406. vote = false,
  407. hasLicense = false,
  408. category = "Criminals"
  409. customCheck = function(ply) return ply:GetUserGroup() == "nil" end
  410. })
  411.  
  412.  
  413. --[[---------------------------------------------------------------------------
  414. Define which team joining players spawn into and what team you change to if demoted
  415. ---------------------------------------------------------------------------]]
  416. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  417. --[[---------------------------------------------------------------------------
  418. Define which teams belong to civil protection
  419. Civil protection can set warrants, make people wanted and do some other police related things
  420. ---------------------------------------------------------------------------]]
  421. GAMEMODE.CivilProtection = {
  422. [TEAM_POLICE] = true,
  423. [TEAM_CHIEF] = true,
  424. [TEAM_SWAT]
  425. [TEAM_MAYOR] = true,
  426. }
  427. --[[---------------------------------------------------------------------------
  428. Jobs that are hitmen (enables the hitman menu)
  429. ---------------------------------------------------------------------------]]
  430. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement