Advertisement
Guest User

Jobs

a guest
Aug 12th, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.12 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom jobs.
  6. This file should also contain jobs from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  9. Once you've done that, copy and paste the job to this file and edit it.
  10.  
  11. The default jobs can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  16.  
  17.  
  18. Add jobs under the following line:
  19. ---------------------------------------------------------------------------*/
  20. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  21. color = Color(25, 25, 170, 255),
  22. model = {
  23. "models/player/uk_police/uk_police_01.mdl",
  24. "models/player/uk_police/uk_police_02.mdl",
  25. "models/player/uk_police/uk_police_03.mdl",
  26. "models/player/uk_police/uk_police_04.mdl",
  27. "models/player/uk_police/uk_police_05.mdl",
  28. "models/player/uk_police/uk_police_06.mdl",
  29. "models/player/uk_police/uk_police_07.mdl",
  30. "models/player/uk_police/uk_police_08.mdl",
  31. "models/player/uk_police/uk_police_09.mdl"
  32. },
  33. description = [[5* - The protector of every citizen that lives in the city.]],
  34. weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker", "weapon_rad15", "weapon_stungun"},
  35. command = "cp",
  36. max = 5,
  37. salary = 50,
  38. admin = 0,
  39. level = 5,
  40. vote = false,
  41. hasLicense = true,
  42. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  43. ammo = {
  44. ["pistol"] = 60,
  45. }
  46. })
  47. ---------------------------------------------------------------------------*/
  48. TEAM_FBI = DarkRP.createJob("FBI", {
  49. color = Color(20, 20, 255, 255),
  50. model = {
  51. "models/fbi_pack/fbi_01.mdl",
  52. "models/fbi_pack/fbi_02.mdl",
  53. "models/fbi_pack/fbi_03.mdl",
  54. "models/fbi_pack/fbi_04.mdl",
  55. "models/fbi_pack/fbi_05.mdl",
  56. "models/fbi_pack/fbi_06.mdl",
  57. "models/fbi_pack/fbi_07.mdl",
  58. "models/fbi_pack/fbi_08.mdl",
  59. "models/fbi_pack/fbi_09.mdl"
  60. },
  61. description = [[5* - The FBI belongs to the Government unit.]],
  62. weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker", "weapon_rad15", "weapon_stungun"},
  63. command = "fbi",
  64. max = 4,
  65. salary = 100,
  66. level = 5,
  67. admin = 0,
  68. vote = false,
  69. hasLicense = true,
  70. chief = true,
  71. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  72. ammo = {
  73. ["pistol"] = 60,
  74. }
  75. })
  76. ---------------------------------------------------------------------------*/
  77. TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
  78. color = Color(25, 25, 170, 255),
  79. model = {"models/player/lordvipes/rerc_vector/vector_cvp.mdl"},
  80. description = [[3* - The protector of every citizen that lives in the city.]],
  81. weapons = {"arrest_stick", "unarrest_stick", "fas2_mp5sd6", "stunstick", "door_ram", "weaponchecker", "handcuffs", "weapon_rad15", "weapon_stungun"},
  82. command = "swat",
  83. max = 4,
  84. salary = 125,
  85. admin = 0,
  86. vote = false,
  87. hasLicense = true,
  88. PlayerLoadout = function(ply) ply:SetArmor(200) end,
  89. chief = true,
  90. customCheck = function(ply) return CLIENT or return table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
  91. CustomCheckFailMsg = "This job is for Premium only",
  92. })
  93. ---------------------------------------------------------------------------*/
  94. TEAM_CARTEL = DarkRP.createJob("Cartel Member", {
  95. color = Color(75, 75, 75, 255),
  96. model = {
  97. "models/sd/players/[dbs_brawler]-head_brawler_dbs.mdl",
  98. "models/sd/players/[dbs_brawler_2]-head_brawler_dbs.mdl",
  99. "models/sd/players/[dbs_grappler].mdl",
  100. "models/sd/players/[dbs_grappler_2].mdl",
  101. "models/sd/players/[dbs_quick]-head_quick_dbs.mdl",
  102. "models/sd/players/[dbs_quick]-head_quick_dbs_2.mdl",
  103. "models/sd/players/[dbs_quick]-head_striker_dbs.mdl",
  104. "models/sd/players/[dbs_striker]-head_quick_dbs.mdl",
  105. "models/sd/players/[dbs_striker]-head_quick_dbs_2.mdl",
  106. "models/sd/players/[dbs_striker]-head_striker_dbs.mdl"
  107. },
  108. description = [[The lowest person of crime.]],
  109. weapons = {},
  110. command = "cartel",
  111. max = 5,
  112. salary = 0,
  113. admin = 0,
  114. vote = false,
  115. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  116. hasLicense = false
  117. })
  118. ---------------------------------------------------------------------------*/
  119. TEAM_CLEADER = DarkRP.createJob("Cartel Leader", {
  120. color = Color(125, 125, 125, 255),
  121. model = "models/ninja/vaas.mdl",
  122. description = [[Cartel Leader is the boss of the criminals in the city.]],
  123. weapons = {"lockpick", "unarrest_stick"},
  124. command = "cleader",
  125. max = 1,
  126. salary = 45,
  127. admin = 0,
  128. vote = false,
  129. hasLicense = false,
  130. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  131. PlayerDeath = function(ply, weapon, killer)
  132. ply:teamBan()
  133. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  134. if killer:IsPlayer() then
  135. DarkRP.notifyAll(0, 4, "The Cartel Leader has been killed and is therefor demoted.")
  136. else
  137. DarkRP.notifyAll(0, 4, "The Cartel Leader has died and is therefor demoted.")
  138. end
  139. end
  140. })
  141. ---------------------------------------------------------------------------*/
  142. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  143. color = Color(255, 140, 0, 255),
  144. model = "models/player/monk.mdl",
  145. description = [[5* - You sell guns, duh]],
  146. weapons = {"rphands", "weapon_arc_atmcard", "itemstore_pickup"},
  147. command = "gd",
  148. max = 3,
  149. salary = 25,
  150. admin = 0,
  151. vote = false,
  152. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  153. hasLicense = false
  154. })
  155. ---------------------------------------------------------------------------*/
  156. TEAM_MECH = DarkRP.createJob("Mechanic", {
  157. color = Color(0, 255, 222, 255),
  158. model = "models/mark2580/borderlands_ps/moxxi_garage.mdl",
  159. description = [[Repair Cars.]],
  160. weapons = {"vc_repair"},
  161. command = "mech",
  162. max = 3,
  163. salary = 0,
  164. admin = 0,
  165. vote = false,
  166. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  167. hasLicense = false
  168. })
  169. ---------------------------------------------------------------------------*/
  170. TEAM_ESCORT = DarkRP.createJob("Escort Girl", {
  171. color = Color(255, 0, 255, 255),
  172. model = "models/player/lilith/lilith.mdl",
  173. description = [[""Escort"" people around the city]],
  174. weapons = {"fas2_dv2"},
  175. command = "escort",
  176. max = 3,
  177. salary = 0,
  178. admin = 0,
  179. vote = false,
  180. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  181. hasLicense = false
  182. })
  183. ---------------------------------------------------------------------------*/
  184. TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
  185. color = Color(255, 153, 0, 255),
  186. model = "models/player/korka007/nick.mdl",
  187. description = [[Make 'em say Your name!]],
  188. weapons = {},
  189. command = "drug",
  190. max = 3,
  191. salary = 0,
  192. admin = 0,
  193. vote = false,
  194. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  195. hasLicense = false
  196. })
  197. ---------------------------------------------------------------------------*/
  198. TEAM_BMD = DarkRP.createJob("Blackmarket Dealer", {
  199. color = Color(255, 140, 0, 255),
  200. model = {
  201. "models/mark2580/killing/steampunk/sp_mr_foster.mdl",
  202. "models/mark2580/killing/steampunk/sp_mrs_foster.mdl"
  203. },
  204. description = [[Got some rare things on sale, stranger!]],
  205. weapons = {},
  206. command = "bmd",
  207. max = 3,
  208. salary = 25,
  209. admin = 0,
  210. vote = false,
  211. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  212. hasLicense = false,
  213. customCheck = function(ply) return CLIENT or
  214. table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
  215. CustomCheckFailMsg = "This job is for Premium only",
  216. })
  217. ---------------------------------------------------------------------------*/
  218. TEAM_MEDIC = DarkRP.createJob("Medic", {
  219. color = Color(47, 79, 79, 255),
  220. model = "models/mark2580/borderlands2/maya_siren_xm.mdl",
  221. description = [[You work to restore players to full health.]],
  222. weapons = {"fas2_ifak"},
  223. command = "medic",
  224. max = 3,
  225. salary = 25,
  226. admin = 0,
  227. vote = false,
  228. hasLicense = false,
  229. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  230. medic = true
  231. })
  232. ---------------------------------------------------------------------------*/
  233. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  234. color = Color(150, 20, 20, 255),
  235. model = "models/gdub.mdl",
  236. description = [[5* - The Mayor of the city]],
  237. weapons = {},
  238. command = "mayor",
  239. max = 1,
  240. salary = 150,
  241. admin = 0,
  242. level = 5,
  243. vote = true,
  244. hasLicense = true,
  245. PlayerLoadout = function(ply) ply:SetArmor(100) end,
  246. CanPlayerSuicide = function(ply) return false end,
  247. mayor = true,
  248. PlayerDeath = function(ply, weapon, killer)
  249. ply:teamBan()
  250. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  251. if killer:IsPlayer() then
  252. DarkRP.notifyAll(0, 4, "The mayor has been killed and is therefor demoted.")
  253. else
  254. DarkRP.notifyAll(0, 4, "The mayor has died and is therefor demoted.")
  255. end
  256. end
  257. })
  258. ---------------------------------------------------------------------------*/
  259. TEAM_HOBO = DarkRP.createJob("Hobo", {
  260. color = Color(184, 134, 11, 255),
  261. model = "models/player/eli.mdl",
  262. description = [[The lowest member of society. Everybody laughs at you.]],
  263. weapons = {"weapon_bugbait"},
  264. command = "hobo",
  265. max = 5,
  266. salary = 0,
  267. admin = 0,
  268. vote = false,
  269. hasLicense = false,
  270. candemote = false,
  271. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  272. hobo = true
  273. })
  274. ---------------------------------------------------------------------------*/
  275. TEAM_THIEF = DarkRP.createJob("Thief", {
  276. color = Color(150, 150, 150, 255),
  277. model = "models/player/Group03/male_07.mdl",
  278. description = [[You are a thief, mug people, raid houses]],
  279. weapons = {"lockpick", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
  280. command = "thief",
  281. max = 5,
  282. salary = 0,
  283. admin = 0,
  284. vote = false,
  285. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  286. hasLicense = false
  287. })
  288. ---------------------------------------------------------------------------*/
  289. TEAM_PTHIEF = DarkRP.createJob("Premium Thief", {
  290. color = Color(192, 192, 192, 255),
  291. model = "models/player/pd2_wolf_p.mdl",
  292. description = [[You are a thief, mug people, raid houses]],
  293. weapons = {"lockpick", "prokeypadcracker", "weapon_arc_atmhack"}, -- You may wanna find a pickpocket swep and add it here.
  294. command = "pthief",
  295. max = 0,
  296. salary = 65,
  297. admin = 0,
  298. vote = false,
  299. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  300. hasLicense = false,
  301. customCheck = function(ply) return CLIENT or
  302. table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
  303. CustomCheckFailMsg = "This job is for Premium only",
  304. })
  305. ---------------------------------------------------------------------------*/
  306. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  307. color = Color(49, 79, 49, 255),
  308. model = "models/player/agent_47.mdl",
  309. description = [[People hire you to take out other people.]],
  310. weapons = {"fas2_dv2"},
  311. command = "hitman",
  312. max = 4,
  313. salary = 0,
  314. admin = 0,
  315. vote = false,
  316. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  317. hasLicense = false
  318. })
  319. ---------------------------------------------------------------------------*/
  320. TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
  321. color = Color(170, 0, 0, 255),
  322. model = "models/player/kuma/kuma.mdl",
  323. description = [[It's up to you to patrol and respond to admin calls.]],
  324. weapons = {},
  325. command = "aod",
  326. max = 0,
  327. salary = 100,
  328. admin = 0,
  329. vote = false,
  330. hasLicense = false,
  331. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  332. customCheck = function(ply) return CLIENT or return table.HasValue({"moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end
  333. })
  334. ---------------------------------------------------------------------------*/
  335. TEAM_PMC = DarkRP.createJob("PMC", {
  336. color = Color(0,200,50,255),
  337. model = "models/steinman/bf4/us_02.mdl",
  338. description = [[10* People will pay for Your protection.]],
  339. weapons = {"fas2_mp5sd6"},
  340. command = "pmc",
  341. max = 5,
  342. salary = 0,
  343. admin = 0,
  344. admin = 0,
  345. level = 10,
  346. vote = false,
  347. PlayerLoadout = function(ply) ply:SetArmor(100) end,
  348. hasLicense = true
  349. })
  350. ---------------------------------------------------------------------------*/
  351. TEAM_SGUARD = DarkRP.createJob("Security Guard", {
  352. color = Color(0,200,50,255),
  353. model = {
  354. "models/player/guard_pack/guard_01.mdl",
  355. "models/player/guard_pack/guard_02.mdl",
  356. "models/player/guard_pack/guard_03.mdl",
  357. "models/player/guard_pack/guard_04.mdl",
  358. "models/player/guard_pack/guard_05.mdl",
  359. "models/player/guard_pack/guard_06.mdl",
  360. "models/player/guard_pack/guard_07.mdl",
  361. "models/player/guard_pack/guard_08.mdl",
  362. "models/player/guard_pack/guard_09.mdl"
  363. },
  364. description = [[Guard the local stores & bank]],
  365. weapons = {"fas2_deagle", "rphands", "weapon_arc_atmcard"},
  366. command = "sguard",
  367. max = 3,
  368. salary = 45,
  369. admin = 0,
  370. vote = false,
  371. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  372. hasLicense = true
  373. })
  374. ---------------------------------------------------------------------------*/
  375. TEAM_BANKER = DarkRP.createJob("Banker", {
  376. color = Color(243, 217, 223, 255),
  377. model = "models/player/magnusson.mdl",
  378. description = [[You control the local city bank.]],
  379. weapons = {"rphands", "weapon_arc_atmcard"},
  380. command = "banker",
  381. max = 1,
  382. salary = 45,
  383. admin = 0,
  384. vote = false,
  385. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  386. hasLicense = false,
  387. })
  388. ---------------------------------------------------------------------------*/
  389. TEAM_SS = DarkRP.createJob("Secret Service", {
  390. color = Color(170, 1, 20, 255),
  391. model = "models/player/smith.mdl",
  392. description = [[You are responsible for protecting the mayor.]],
  393. weapons = {"fas2_p226", "stunstick", "weaponchecker", "rphands", "weapon_arc_atmcard"},
  394. command = "ss",
  395. max = 2,
  396. salary = 65,
  397. admin = 0,
  398. vote = true,
  399. hasLicense = true,
  400. PlayerLoadout = function(ply) ply:SetArmor(100) end,
  401. ammo = {
  402. ["pistol"] = 60,
  403. }
  404. })
  405. ---------------------------------------------------------------------------*/
  406. TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
  407. color = Color(205, 183, 158, 255),
  408. model = "models/player/phoenix.mdl",
  409. description = [[Bomb the city! *You may only Jihad every ten minute*]],
  410. weapons = {"rphands", "weapon_arc_atmcard", "weapon_jihad"},
  411. command = "terrorist",
  412. max = 3,
  413. salary = 0,
  414. admin = 0,
  415. vote = true,
  416. hasLicense = false,
  417. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  418. customCheck = function(ply) return CLIENT or
  419. table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
  420. CustomCheckFailMsg = "This job is for Premium only",
  421. })
  422. ---------------------------------------------------------------------------*/
  423. TEAM_TAXI = DarkRP.createJob("Taxi Driver", {
  424. color = Color(240, 230, 140, 255),
  425. model = "models/player/leet.mdl",
  426. description = [[Use Your car to drive people around the city]],
  427. weapons = {"rphands", "weapon_arc_atmcard"},
  428. command = "taxi",
  429. max = 5,
  430. salary = 25,
  431. admin = 0,
  432. vote = true,
  433. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  434. hasLicense = false,
  435. })
  436. ---------------------------------------------------------------------------*/
  437. TEAM_MERCENARY = DarkRP.createJob("Custom - Elite Mercenary", {
  438. color = Color(128, 0, 128, 255),
  439. model = "models/blacklist/spy1.mdl",
  440. description = [[You're a mercenary, open for hire.]],
  441. weapons = {"lockpick", "keypad_cracker", "fas2_g3", "fas2_m24", "rphands", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
  442. command = "skarba",
  443. max = 0,
  444. salary = 50,
  445. admin = 0,
  446. vote = false,
  447. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  448. hasLicense = false,
  449. customCheck = function(ply) return CLIENT or return ply:SteamID() == "STEAM_0:1:55593568" or ply:IsAdmin() end,
  450. --or ply:SteamID()=="ADD" - Add for more purchases
  451. CustomCheckFailMsg = "This is a Custom Job!" -- Allows you to tell the user what went wrong when attempting to switch jobs
  452. })
  453. ---------------------------------------------------------------------------*/
  454. TEAM_DJ = DarkRP.createJob("DJ", {
  455. color = Color(192, 192, 192, 255),
  456. model = {
  457. "models/player/daftpunk/daft_gold.mdl",
  458. "models/player/daftpunk/daft_silver.mdl"
  459. },
  460. description = [[You're the citys beloved DJ]],
  461. weapons = {"rphands", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
  462. command = "dj",
  463. max = 2,
  464. salary = 50,
  465. admin = 0,
  466. vote = false,
  467. PlayerLoadout = function(ply) ply:SetArmor(0) end,
  468. hasLicense = false,
  469. })
  470. ---------------------------------------------------------------------------*/
  471. /*---------------------------------------------------------------------------
  472. Define which team joining players spawn into and what team you change to if demoted
  473. ---------------------------------------------------------------------------*/
  474. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  475.  
  476.  
  477. /*---------------------------------------------------------------------------
  478. Define which teams belong to civil protection
  479. Civil protection can set warrants, make people wanted and do some other police related things
  480. ---------------------------------------------------------------------------*/
  481. GAMEMODE.CivilProtection = {
  482. [TEAM_POLICE] = true,
  483. [TEAM_CHIEF] = true,
  484. [TEAM_MAYOR] = true,
  485. [TEAM_FBI] = true,
  486. [TEAM_SWAT] = true,
  487. }
  488.  
  489. /*---------------------------------------------------------------------------
  490. Jobs that are hitmen (enables the hitman menu)
  491. ---------------------------------------------------------------------------*/
  492. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement