Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.12 KB | None | 0 0
  1.  
  2. --[[---------------------------------------------------------------------------
  3. DarkRP custom jobs
  4. ---------------------------------------------------------------------------
  5.  
  6. This file contains your custom jobs.
  7. This file should also contain jobs from DarkRP that you edited.
  8.  
  9. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  10. Once you've done that, copy and paste the job to this file and edit it.
  11.  
  12. The default jobs can be found here:
  13. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  14.  
  15. For examples and explanation please visit this wiki page:
  16. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  17.  
  18.  
  19. Add jobs under the following line:
  20. ---------------------------------------------------------------------------]]
  21.  
  22.  
  23. --[[---------------------------------------------------------
  24. Name: Settings
  25. -----------------------------------------------------------]]
  26. local GroupDonator = { "superadmin", "admin", "Donator Mod", "Community Manager", "moderator", "doantor" }
  27.  
  28.  
  29.  
  30. TEAM_BLACK = DarkRP.createJob("Black Market Dealer", {
  31. color = Color(99, 98, 98, 255),
  32. model = {"models/player/Eli.mdl"},
  33. description = [[You are to sell guns to people. dont discriminate over any job]],
  34. weapons = {},
  35. command = "bmd",
  36. max = 3,
  37. salary = 250,
  38. admin = 0,
  39. vote = false,
  40. hasLicense = false,
  41. candemote = true,
  42. -- CustomCheck
  43. medic = false,
  44. chief = false,
  45. mayor = false,
  46. hobo = false,
  47. cook = false,
  48. category = "Citizens",
  49. })
  50.  
  51.  
  52. TEAM_SWATMEDIC = DarkRP.createJob("S.W.A.T Medic", {
  53. color = Color(0, 80, 255, 255),
  54. model = {"models/player/bfh_mechanic.mdl"},
  55. description = [[Assist other S.W.A.T members when they are injured]],
  56. weapons = {"med_kit", "door_ram"},
  57. command = "cswatmedic",
  58. max = 2,
  59. salary = 60,
  60. admin = 0,
  61. vote = false,
  62. hasLicense = true,
  63. candemote = true,
  64. medic = true,
  65. chief = false,
  66. mayor = false,
  67. hobo = false,
  68. cook = false,
  69. category = "S.W.A.T",
  70. })
  71.  
  72. TEAM_SWATSNIPER = DarkRP.createJob("S.W.A.T Sniper", {
  73. color = Color(0, 80, 255, 255),
  74. model = {"models/player/bfh_mechanic.mdl"},
  75. description = [[Snipe those terrorists from far away]],
  76. weapons = {"m9k_usp", "m9k_m24", "door_ram"},
  77. command = "cswatsniper",
  78. max = 1,
  79. salary = 75,
  80. admin = 0,
  81. vote = true,
  82. hasLicense = true,
  83. candemote = true,
  84. medic = false,
  85. chief = false,
  86. mayor = false,
  87. hobo = false,
  88. cook = false,
  89. category = "S.W.A.T",
  90. customCheck = function(ply) return
  91. table.HasValue( GroupDonator, ply:GetNWString("usergroup") )
  92. end,
  93. customCheckFailMsg = "This is restricted to donator and higher!",
  94. })
  95.  
  96. TEAM_TERRORISTLEADER = DarkRP.createJob("Terrorist Leader", {
  97. color = Color(255, 140, 0, 255),
  98. model = {"models/player/kuma/alqaeda_commando.mdl"},
  99. description = [[Lead the terrorists to victory! Cause chaos!!!]],
  100. weapons = {"weapon_jihadbomb"},
  101. command = "cterroristleader",
  102. max = 1,
  103. salary = 95,
  104. admin = 0,
  105. vote = true,
  106. hasLicense = false,
  107. candemote = true,
  108. medic = false,
  109. chief = false,
  110. mayor = false,
  111. hobo = false,
  112. cook = false,
  113. category = "Citizens",
  114. })
  115.  
  116. TEAM_TRAINEDHITMAN = DarkRP.createJob("Trained Hitman", {
  117. color = Color(25, 25, 25, 255),
  118. model = "models/player/charple.mdl",
  119. description = [[Be a better hitman]],
  120. weapons = {"unarrest_stick", "m9k_m24"},
  121. command = "ctrainedhitman",
  122. max = 1,
  123. salary = 80,
  124. admin = 0,
  125. vote = false,
  126. hasLicense = false,
  127. category = "Gangsters",
  128.  
  129. })
  130.  
  131.  
  132.  
  133.  
  134.  
  135. TEAM_SWATLEADER = DarkRP.createJob("S.W.A.T Leader", {
  136. color = Color(0, 80, 255, 255),
  137. model = {"models/player/swat.mdl"},
  138. description = [[The S.W.A.T leader should lead]],
  139. weapons = {"m9k_usp", "stunstick", "door_ram", "arrest_stick", "unarrest_stick"},
  140. command = "cswatleader",
  141. max = 1,
  142. salary = 75,
  143. admin = 0,
  144. vote = true,
  145. hasLicense = true,
  146. candemote = true,
  147. medic = false,
  148. chief = false,
  149. mayor = false,
  150. hobo = false,
  151. cook = false,
  152. category = "S.W.A.T",
  153. customCheck = function(ply) return
  154. table.HasValue( GroupDonator, ply:GetNWString("usergroup") )
  155. end,
  156. customCheckFailMsg = "This is restricted to donator and higher!",
  157. })
  158.  
  159. TEAM_TERROR = DarkRP.createJob("Terrorist", {
  160. color = Color(255, 0, 0, 255),
  161. model = {"models/player/kuma/alqaeda_commando.mdl"},
  162. description = [[You are to terrorize the city and scare people and raid the pd for guns and to kill the cops you are able to take over the pd.]],
  163. weapons = {},
  164. command = "terrorist",
  165. max = 4,
  166. salary = 10,
  167. admin = 0,
  168. vote = true,
  169. hasLicense = true,
  170. candemote = true,
  171. -- CustomCheck
  172. medic = false,
  173. chief = false,
  174. mayor = false,
  175. hobo = false,
  176. cook = false,
  177. category = "Citizens",
  178. })
  179.  
  180. TEAM_THIEF = DarkRP.createJob("Thief", {
  181. color = Color(0, 0, 0, 255),
  182. model = "models/player/phoenix.mdl",
  183. description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
  184. weapons = {"weapon_arc_atmcard"},{"lockpick", "keypad_cracker", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
  185. command = "mthief",
  186. max = 2,
  187. salary = 65,
  188. admin = 0,
  189. vote = false,
  190. hasLicense = false,
  191. category = "Citizens",
  192. })
  193.  
  194. TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
  195. color = Color(0, 0, 0, 255),
  196. model = "models/player/guerilla.mdl",
  197. description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
  198. weapons = {"prokeypadcracker", "pro_lockpick_update", "m9k_deagle", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
  199. command = "thief",
  200. max = 2,
  201. salary = 65,
  202. admin = 0,
  203. vote = false,
  204. hasLicense = false,
  205. category = "Citizens",
  206. customCheck = function(ply) return
  207. table.HasValue( GroupDonator, ply:GetNWString("usergroup") )
  208. end,
  209. customCheckFailMsg = "This is restricted to donator and higher!",
  210. })
  211.  
  212. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  213. color = Color(0, 0, 0, 255),
  214. model = "models/agent_47.mdl",
  215. description = [[People hire you to take out other people,
  216. this job require you to be completely focussed.
  217. A single breath can make you loose a shot.]],
  218. weapons = {"m9k_an94", "vincent1911", "weapon_arc_atmcard"},
  219. command = "hitman",
  220. max = 1,
  221. salary = 65,
  222. admin = 0,
  223. vote = false,
  224. hasLicense = false,
  225. category = "Citizens",
  226. })
  227.  
  228. TEAM_SECURITY = DarkRP.createJob("Security Guard", {
  229. color = Color(0, 178, 255, 255),
  230. model = {"models/player/guard_pack/guard_01.mdl", "models/player/guard_pack/guard_02.mdl", "models/player/guard_pack/guard_03.mdl", "models/player/guard_pack/guard_04.mdl", "models/player/guard_pack/guard_05.mdl", "models/player/guard_pack/guard_06.mdl", "models/player/guard_pack/guard_07.mdl", "models/player/guard_pack/guard_08.mdl", "models/player/guard_pack/guard_09.mdl"},
  231. description = [[You are to be hired to protect someone or shop.]],
  232. weapons = {"m9k_deagle", "weapon_cuff_police", "stunstick"},
  233. command = "securityguard",
  234. max = 5,
  235. salary = 250,
  236. admin = 0,
  237. vote = false,
  238. hasLicense = true,
  239. candemote = true,
  240. medic = false,
  241. chief = false,
  242. mayor = false,
  243. hobo = false,
  244. cook = false,
  245. category = "Citizens",
  246. })
  247.  
  248.  
  249. TEAM_SWAT = DarkRP.createJob("Swat", {
  250. color = Color(25, 25, 170, 255),
  251. model = {"models/player/swat.mdl"},
  252. description = [[The protector of every citizen that lives in the city.
  253. You have the power to arrest criminals and protect innocents.
  254. Hit a player with your arrest baton to put them in jail.
  255. Bash a player with a stunstick and they may learn to obey the law.
  256. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  257. The Battering Ram can also unfreeze frozen props (if enabled).
  258. Type /wanted <name> to alert the public to the presence of a criminal.]],
  259. weapons = {"arrest_stick", "weapon_cuff_police", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "weapon_arc_atmcard"},
  260. command = "Swat",
  261. max = 4,
  262. salary = 85,
  263. admin = 0,
  264. vote = true,
  265. hasLicense = true,
  266. help = {
  267. "Please don't abuse your job",
  268. "When you arrest someone they are auto transported to jail.",
  269. "They are auto let out of jail after some time",
  270. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  271. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
  272. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
  273. "Type /jailpos to set the jail position"
  274. },
  275. category = "Civil Protection",
  276. })
  277.  
  278. --// On duty jobs
  279.  
  280. TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
  281. color = Color(170, 0, 0, 255),
  282. model = {"models/player/combine_super_soldier.mdl"},
  283. description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
  284. It's up to you to patrol and respond to admin calls.]],
  285. weapons = {"weapon_arc_atmcard"},{"weapon_arc_atmcard"},
  286. command = "aod",
  287. max = 0,
  288. salary = 100,
  289. admin = 0,
  290. vote = false,
  291. hasLicense = false,
  292. customCheck = function(ply) return ply:GetUserGroup() == "admin" or "headadmin" end,
  293.  
  294. })
  295.  
  296. TEAM_SADMIN = DarkRP.createJob("Superadmin On Duty", {
  297. color = Color(170, 0, 0, 255),
  298. model = {"models/player/combine_super_soldier.mdl"},
  299. description = [[Superadmin on duty is when you as an superadmin, is ready to make sure the server stays at its best.
  300. It's up to you to patrol and respond to admin calls.]],
  301. weapons = {"weapon_arc_atmcard"},
  302. command = "saod",
  303. max = 0,
  304. salary = 100,
  305. admin = 0,
  306. vote = false,
  307. hasLicense = false,
  308. customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end,
  309. category = "Citizens"
  310.  
  311. })
  312.  
  313. TEAM_MOD = DarkRP.createJob("Mod on duty", {
  314. color = Color(170, 0, 0, 255),
  315. model = {"models/player/combine_super_soldier.mdl"},
  316. description = [[Mod on duty is when you as an mod, is ready to make sure the server stays at its best.
  317. It's up to you to patrol and respond to admin calls.]],
  318. weapons = {"weapon_arc_atmcard"},
  319. command = "mod",
  320. max = 0,
  321. salary = 100,
  322. admin = 0,
  323. vote = false,
  324. hasLicense = false,
  325. customCheck = function(ply) return ply:GetUserGroup() == "Moderator", "Donator Mod" end,
  326. category = "Citizens"
  327. })
  328.  
  329. TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
  330. color = Color(51, 204, 255, 255),
  331. model = "models/player/Kleiner.mdl",
  332. description = [[You deal drugs to those in need.
  333. Be careful, may get arrested if caught in the act!]],
  334. weapons = {"weapon_arc_atmcard"},
  335. command = "drug",
  336. max = 2,
  337. salary = 65,
  338. admin = 0,
  339. vote = false,
  340. hasLicense = false,
  341. category = "Citizens",
  342. })
  343.  
  344. TEAM_FREE = DarkRP.createJob("Free Runner", {
  345. color = Color(0, 99, 142, 255),
  346. model = {"models/player/alyx.mdl"},
  347. description = [[You are able to mug for a max of 7k. you are to cause trouble and then run from them. You may raid silently. You cannot attack until they attack you first.]],
  348. weapons = {"m9k_deagle", "climb_swep2", "weapon_fists", "weapon_arc_atmcard"},
  349. command = "freerun",
  350. max = 5,
  351. salary = 400,
  352. admin = 0,
  353. vote = false,
  354. hasLicense = false,
  355. candemote = true,
  356. medic = false,
  357. chief = false,
  358. mayor = false,
  359. hobo = false,
  360. cook = false,
  361. category = "Citizens",
  362. })
  363.  
  364. TEAM_CHIEF = DarkRP.createJob("Police Chief", {
  365. color = Color(20, 20, 255, 255),
  366. model = "models/player/combine_soldier_prisonguard.mdl",
  367. description = [[The Chief is the leader of the Civil Protection unit.
  368. Coordinate the police force to enforce law in the city.
  369. Hit a player with arrest baton to put them in jail.
  370. Bash a player with a stunstick and they may learn to obey the law.
  371. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  372. Type /wanted <name> to alert the public to the presence of a criminal.
  373. Type /jailpos to set the Jail Position]],
  374. weapons = {"weapon_arc_atmcard","arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
  375. command = "chief",
  376. max = 1,
  377. salary = GAMEMODE.Config.normalsalary * 1.67,
  378. admin = 0,
  379. vote = false,
  380. hasLicense = true,
  381. chief = true,
  382. NeedToChangeFrom = TEAM_POLICE,
  383. ammo = {
  384. ["pistol"] = 60,
  385. },
  386. category = "Civil Protection",
  387. })
  388.  
  389. TEAM_POLICE = DarkRP.createJob("Police", {
  390. color = Color(25, 25, 170, 255),
  391. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  392. description = [[The protector of every citizen that lives in the city.
  393. You have the power to arrest criminals and protect innocents.
  394. Hit a player with your arrest baton to put them in jail.
  395. Bash a player with a stunstick and they may learn to obey the law.
  396. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  397. The Battering Ram can also unfreeze frozen props (if enabled).
  398. Type /wanted <name> to alert the public to the presence of a criminal.]],
  399. weapons = {"weapon_arc_atmcard","arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
  400. command = "cp",
  401. max = 4,
  402. salary = GAMEMODE.Config.normalsalary * 1.45,
  403. admin = 0,
  404. vote = true,
  405. hasLicense = true,
  406. ammo = {
  407. ["pistol"] = 60,
  408. },
  409. category = "Civil Protection",
  410. })
  411.  
  412. TEAM_FBI = DarkRP.createJob("FBI", {
  413. color = Color(0, 0, 0, 255),
  414. model = {"models/player/fbi/fbi_01.mdl", "models/player/fbi/fbi_02.mdl", "models/player/fbi/fbi_03.mdl", "models/player/fbi/fbi_04.mdl"},
  415. description = [[The protector of every citizen that lives in the city.
  416. You have the power to arrest criminals and protect innocents.
  417. Hit a player with your arrest baton to put them in jail.
  418. Bash a player with a stunstick and they may learn to obey the law.
  419. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  420. The Battering Ram can also unfreeze frozen props (if enabled).
  421. Type /wanted <name> to alert the public to the presence of a criminal.]],
  422. weapons = {"arrest_stick", "weapon_cuff_police", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "weapon_arc_atmcard"},
  423. command = "FBI",
  424. max = 4,
  425. salary = 85,
  426. admin = 0,
  427. vote = true,
  428. hasLicense = true,
  429. help = {
  430. "Please don't abuse your job",
  431. "When you arrest someone they are auto transported to jail.",
  432. "They are auto let out of jail after some time",
  433. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  434. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
  435. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
  436. "Type /jailpos to set the jail position"
  437. },
  438. category = "Civil Protection",
  439. })
  440.  
  441.  
  442. TEAM_BANK = DarkRP.createJob("Banker", {
  443. color = Color(255, 198, 0, 255),
  444. model = {"models/player/magnusson.mdl"},
  445. description = [[You are responsible for the safety and security of the mayor.
  446. You may legally print in a bank.
  447. You may not base or own doors/buildings.
  448. Do not take this job if there is no mayor.
  449. You may own any type of weapon
  450. You must guard the mayor with your life]],
  451. weapons = {"m9k_deagle", "stunstick", "weaponchecker", "weapon_cuff_police", "weapon_arc_atmcard"},
  452. command = "banker",
  453. max = 1,
  454. salary = 360,
  455. admin = 0,
  456. vote = false,
  457. hasLicense = false,
  458. candemote = true,
  459. -- CustomCheck
  460. medic = false,
  461. chief = false,
  462. mayor = false,
  463. hobo = false,
  464. cook = false,
  465. category = "Citizens",
  466. })
  467.  
  468.  
  469. --[[---------------------------------------------------------------------------
  470. Define which team joining players spawn into and what team you change to if demoted
  471. ---------------------------------------------------------------------------]]
  472. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  473.  
  474.  
  475. --[[---------------------------------------------------------------------------
  476. Define which teams belong to civil protection
  477. Civil protection can set warrants, make people wanted and do some other police related things
  478. ---------------------------------------------------------------------------]]
  479. GAMEMODE.CivilProtection = {
  480. [TEAM_POLICE] = true,
  481. [TEAM_CHIEF] = true,
  482. [TEAM_MAYOR] = true,
  483. [TEAM_SWAT] = true,
  484. [TEAM_FBI] = true,
  485. }
  486.  
  487. --[[---------------------------------------------------------------------------
  488. Jobs that are hitmen (enables the hitman menu)
  489. ---------------------------------------------------------------------------]]
  490. DarkRP.addHitmanTeam(TEAM_HITMAN)
  491. DarkRP.addHitmanTeam(TEAM_TRAINEDHITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement