Advertisement
Guest User

Jobs.lua

a guest
Nov 23rd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.42 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("Police Officer", {
  21. color = Color(25, 25, 170, 255),
  22. model = {
  23. "models/DPFilms/Metropolice/Playermodels/pm_tf2_metrocop_blu.mdl",
  24. "models/DPFilms/Metropolice/Playermodels/pm_tf2_metrocop_red.mdl",
  25. "models/DPFilms/Metropolice/Playermodels/pm_black_police.mdl",
  26. "models/DPFilms/Metropolice/Playermodels/pm_arctic_police.mdl",
  27. "models/DPFilms/Metropolice/Playermodels/pm_hl2beta_police.mdl",
  28. "models/DPFilms/Metropolice/Playermodels/pm_HDpolice.mdl"},
  29. description = [[The protector of every citizen that lives in the city.
  30. You have the power to arrest criminals and protect innocents.
  31. Hit a player with your arrest baton to put them in jail.
  32. Bash a player with a stunstick and they may learn to obey the law.
  33. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  34. The Battering Ram can also unfreeze frozen props (if enabled).
  35. Type /wanted <name> to alert the public to the presence of a criminal.]],
  36. weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker"},
  37. command = "cp",
  38. max = 4,
  39. salary = GAMEMODE.Config.normalsalary * 1.45,
  40. admin = 0,
  41. vote = true,
  42. hasLicense = true,
  43. ammo = {
  44. ["pistol"] = 60,
  45. }
  46. })
  47. TEAM_GANG = DarkRP.createJob("Gangster", {
  48. color = Color(75, 75, 75, 255),
  49. model = {
  50. "models/player/Group03/Female_01.mdl",
  51. "models/player/Group03/Female_02.mdl",
  52. "models/player/Group03/Female_03.mdl",
  53. "models/player/Group03/Female_04.mdl",
  54. "models/player/Group03/Female_06.mdl",
  55. "models/player/group03/male_01.mdl",
  56. "models/player/Group03/Male_02.mdl",
  57. "models/player/Group03/male_03.mdl",
  58. "models/player/Group03/Male_04.mdl",
  59. "models/player/Group03/Male_05.mdl",
  60. "models/player/Group03/Male_06.mdl",
  61. "models/player/Group03/Male_07.mdl",
  62. "models/player/Group03/Male_08.mdl",
  63. "models/player/Group03/Male_09.mdl"},
  64. description = [[The lowest person of crime.
  65. A gangster generally works for the KingPin who runs the crime family.
  66. The KingPin sets your agenda and you follow it or you might be punished.]],
  67. weapons = {},
  68. command = "gangster",
  69. max = 3,
  70. salary = GAMEMODE.Config.normalsalary,
  71. admin = 0,
  72. vote = false,
  73. hasLicense = false
  74. })
  75. TEAM_KING = DarkRP.createJob("KingPin", {
  76. color = Color(25, 25, 25, 255),
  77. model = "models/player/gman_high.mdl",
  78. description = [[The KingPin is the boss of the criminals in the city.
  79. With his power he coordinates the gangsters and forms an efficient crime organization.
  80. He has the ability to break into houses by using a lockpick.
  81. The Kingpin posesses the ability to unarrest you.]],
  82. weapons = {"lockpick", "unarrest_stick"},
  83. command = "kingpin",
  84. max = 1,
  85. salary = GAMEMODE.Config.normalsalary * 1.34,
  86. admin = 0,
  87. vote = false,
  88. hasLicense = false
  89. })
  90. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  91. color = Color(255, 140, 0, 255),
  92. model = "models/player/monk.mdl",
  93. description = [[A Gun Dealer is the only person who can sell guns to other people.
  94. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  95. weapons = {"weapon_fists"},
  96. command = "gundealer",
  97. max = 2,
  98. salary = GAMEMODE.Config.normalsalary,
  99. admin = 0,
  100. vote = false,
  101. hasLicense = false
  102. })
  103. TEAM_MEDIC = DarkRP.createJob("Medic", {
  104. color = Color(47, 79, 79, 255),
  105. model = "models/player/kleiner.mdl",
  106. description = [[With your medical knowledge you work to restore players to full health.
  107. Without a medic, people cannot be healed.
  108. Left click with the Medical Kit to heal other players.
  109. Right click with the Medical Kit to heal yourself.]],
  110. weapons = {"fas2_ifak"},
  111. command = "medic",
  112. max = 3,
  113. salary = GAMEMODE.Config.normalsalary,
  114. admin = 0,
  115. vote = false,
  116. hasLicense = false,
  117. medic = true
  118. })
  119. TEAM_CHIEF = DarkRP.createJob("Sheriff", {
  120. color = Color(20, 20, 255, 255),
  121. model = "models/DPFilms/Metropolice/Playermodels/pm_zombie_police.mdl",
  122. description = [[The Chief is the leader of the Civil Protection unit.
  123. Coordinate the police force to enforce law in the city.
  124. Hit a player with arrest baton to put them in jail.
  125. Bash a player with a stunstick and they may learn to obey the law.
  126. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  127. Type /wanted <name> to alert the public to the presence of a criminal.
  128. Type /jailpos to set the Jail Position]],
  129. weapons = {"arrest_stick", "unarrest_stick", "fas2_deagle", "stunstick", "door_ram", "weaponchecker"},
  130. command = "chief",
  131. max = 1,
  132. salary = GAMEMODE.Config.normalsalary * 1.67,
  133. admin = 0,
  134. vote = false,
  135. hasLicense = true,
  136. chief = true,
  137. NeedToChangeFrom = TEAM_POLICE,
  138. ammo = {
  139. ["pistol"] = 60,
  140. }
  141. })
  142. TEAM_MAYOR = DarkRP.createJob("President Shrek", {
  143. color = Color(150, 20, 20, 255),
  144. model = "models/narry/shrek_playermodel_v1.mdl",
  145. description = [[Better get ready to get Shrekt by president Shrek
  146. If you are Shrek you may create and accept warrants.
  147. Type /wanted <name> to warrant a player.
  148. Type /jailpos to set the Jail Position.
  149. Type /lockdown initiate a lockdown of the city.
  150. Everyone must be inside during a lockdown.
  151. The Donkeys patrol the area.
  152. /unlockdown to end a lockdown]],
  153. weapons = {"arrest_stick", "unarrest_stick", "fas2_ots33", "stunstick", "door_ram", "weaponchecker"},
  154. command = "mayor",
  155. max = 1,
  156. salary = GAMEMODE.Config.normalsalary * 1.89,
  157. admin = 0,
  158. vote = true,
  159. hasLicense = false,
  160. mayor = true,
  161. PlayerDeath = function(ply, weapon, killer)
  162.         ply:teamBan()
  163.         ply:changeTeam(GAMEMODE.DefaultTeam, true)
  164.         if killer:IsPlayer() then
  165.             DarkRP.notifyAll(0, 4, "The mayor has been rekt.")
  166.         else
  167.             DarkRP.notifyAll(0, 4, "The mayor has been rekt and will be made Citizen")
  168.         end
  169.     end
  170.     })
  171. TEAM_MAX = DarkRP.createJob("Max's Custom Class", {
  172. color = Color(0, 153, 153, 255),
  173. model = "models/player/combine_soldier04.mdl",
  174. description = [[Soldier from the Future to the past to kick ass
  175. and chew bubblegum, but he's all out of gum]],
  176. weapons = {"fas2_deagle","weapon_fists","fas2_m4a1","fas2_m82"},
  177. command = "max",
  178. max = 1,
  179. salary = 100,
  180. admin = 0,
  181. vote = false,
  182. hasLicense = false,
  183. customCheck=function(ply) return ply:SteamID()== "STEAM_0:1:86736572" end,
  184. })
  185. TEAM_BOOM = DarkRP.createJob("Jihad",{
  186. color = Color(255, 204, 50, 255),
  187. model = "models/player/Phoenix.mdl",
  188. description = [[You are a Jihad.
  189. Donator and VIP Job Only.
  190. You can only Get Hired by the Kingpin, and Don.
  191. You sacrifice yourself to Shrek, by blowing up.
  192. You also sell Gas Cans, to The Don, And KingPin
  193. Only!(Dynamite might be added later on after future
  194. Updates.) ]],
  195. weapons = {"weapon_fists","weapon_jihadbomb"},
  196. command = "boom",
  197. max = 1,
  198. salary = 50,
  199. admin = 0,
  200. vote = false,
  201. hasLicense = false,
  202. customCheck = function(ply) return ply:GetUserGroup() == "donator" or
  203.     ply:GetUserGroup() == "donator+" or
  204.     ply:GetUserGroup() == "vip" or
  205.     ply:GetUserGroup() == "vip+" or
  206.     ply:GetUserGroup() == "admin" or
  207.     ply:GetUserGroup() == "superadmin" or
  208.    ply:GetUserGroup() == "Owner" end,
  209. })
  210. TEAM_ATTACH = DarkRP.createJob("Attachment Dealer",{
  211. color = Color(204, 204, 0, 255),
  212. model = "models/player/eli.mdl",
  213. description = [[You sell Weapon Attachments,
  214. You can ONLY set up a shop alongside a Gun
  215. Dealer.
  216. You cannot have your Own Shop.
  217. ]],
  218. weapons = {"weapon_fists"},
  219. command = "attach",
  220. max = 2,
  221. salary = 45,
  222. admin = 0,
  223. vote = false,
  224. hasLicense = false,
  225. })
  226. TEAM_DON = DarkRP.createJob("The Don",{
  227. color = Color(0, 0, 51, 255),
  228. model = "models/humans/mafia/male_08.mdl",
  229. description = [[You are The Don of the Mafia. You control the
  230. Family.
  231. Your Mafia Members follow your orders. You Kill
  232. the Gangsters on sight, but don\'t fire unless
  233. fired upon.
  234. Rise up against Corrupt government, and take a
  235. stand.
  236. You may Call war on Government only for Legitimate
  237. reasons. ]],
  238. weapons = {"weapons_fists","unarrest_stick","lockpick"},
  239. command = "don",
  240. max = 1,
  241. salary = 75,
  242. admin = 0,
  243. vote = false,
  244. hasLicense = false,
  245. })
  246. TEAM_MAFIA = DarkRP.createJob("Mafia Member",{
  247. color = Color(0, 0, 51, 255),  
  248. model = {
  249. "models/humans/mafia/male_02.mdl",
  250. "models/humans/mafia/male_04.mdl",
  251. "models/humans/mafia/male_06.mdl",
  252. "models/humans/mafia/male_07.mdl",
  253. "models/humans/mafia/male_09.mdl"},
  254. description = [[You are the Mafia Member. You follow orders from
  255. The Don.
  256. There will be Punishment if you go against his
  257. orders.
  258. Members cannot Call War, only The Don can.]],
  259. weapons = {"weapon_fists"},
  260. command = "mafia",
  261. max = 5,
  262. salary = 45,
  263. admin = 0,
  264. vote = false,
  265. hasLicense = false,
  266. })
  267. TEAM_GUARD = DarkRP.createJob("Security Guard",{
  268. color = Color(0, 51, 102, 255),
  269. model = {
  270. "models/player/guard_pack/guard_01.mdl",
  271. "models/player/guard_pack/guard_02.mdl",
  272. "models/player/guard_pack/guard_03.mdl",
  273. "models/player/guard_pack/guard_04.mdl",
  274. "models/player/guard_pack/guard_05.mdl" ,
  275. "models/player/guard_pack/guard_06.mdl",
  276. "models/player/guard_pack/guard_07.mdl",
  277. "models/player/guard_pack/guard_08.mdl",
  278. "models/player/guard_pack/guard_09.mdl"},
  279. description = [[You are a Security Guard. You must get Hired by a
  280. Gun Dealer,
  281. Mafia,and KingPin. You DO NOT Work for free.
  282. ]],
  283. weapons = {"fas2_glock20","weapon_fists", "weaponchecker", "unarrest_stick", "stunstick"},
  284. command = "guard",
  285. max = 4,
  286. salary = 50,
  287. admin = 0,
  288. vote = false,
  289. hasLicense = true,
  290. })
  291. TEAM_SWAT = DarkRP.createJob("FBI",{
  292. color = Color(0, 0, 255, 255),
  293. model = {
  294. "models/fbi_pack/fbi_02.mdl",
  295. "models/fbi_pack/fbi_03.mdl"},
  296. description = [[You are the Elite of the Police Force.You Control
  297. the riots and Mobs around City17. Do NOT Fire
  298. Unless Fired Upon.]],
  299. weapons = {"weapon_fists","fas2_m4a1","fas2_deagle","stunstick","arrest_stick","unarrest_stick", "door_ram", "weaponchecker"},
  300. command = "swat",
  301. max = 4,
  302. salary = 65,
  303. admin = 0,
  304. vote = true,
  305. hasLicense = true,
  306. NeedToChangeFrom = TEAM_POLICE,
  307. })
  308. TEAM_SNIPER = DarkRP.createJob("FBI Sniper",{
  309. color = Color(0, 0, 255, 255),
  310. model = {
  311. "models/fbi_pack/fbi_02.mdl",
  312. "models/fbi_pack/fbi_03.mdl",
  313. "models/fbi_pack/fbi_04.mdl",
  314. "models/fbi_pack/fbi_05.mdl",
  315. "models/fbi_pack/fbi_06.mdl"},
  316. description = [[ You are the best of the best of the FBI,
  317. when it comes to sniping.
  318. you must have a Silencer at all times with your Sniper and Pistol,
  319. only Snipe when needed or in war with Mafia or Gang, or self Defense]],
  320. weapons = {"weapon_fists","fas2_m24","fas2_M1911", "fas2_sr25", "stunstick","arrest_stick","unarrest_stick", "door_ram", "weaponchecker"},
  321. command = "sniper",
  322. max = 4,
  323. salary = 70,
  324. admin = 0,
  325. vote = true,
  326. hasLicense = true,
  327. NeedToChangeFrom = TEAM_POLICE,
  328. customCheck = function(ply) return ply:GetUserGroup() == "donator" or
  329.     ply:GetUserGroup() == "donator+" or
  330.     ply:GetUserGroup() == "vip" or
  331.     ply:GetUserGroup() == "vip+" or
  332.     ply:GetUserGroup() == "admin" or
  333.     ply:GetUserGroup() == "superadmin" or  
  334.    ply:GetUserGroup() == "Owner" end,
  335. })  
  336. TEAM_HIT = DarkRP.createJob("Hitman",{
  337. color = Color(255, 102, 102, 255),
  338. model = "models/player/leet.mdl",
  339. description = [[You are a Hitman. The basic one. Act like a Hitman
  340. (e.g Be stealthy) Wait 10 minutes between each
  341. kill, you cannot kill the same person within a 30
  342. minute time limit.]],
  343. weapons = {"weapon_fists","fas2_ots33","fas2_p226"},
  344. command = "hit",
  345. max = 2,
  346. salary = 45,
  347. admin = 0,
  348. vote = false,
  349. hasLicense = false,
  350. customCheck = function(ply) return ply:GetUserGroup() == "donator" or
  351.     ply:GetUserGroup() == "donator+" or
  352.     ply:GetUserGroup() == "vip" or
  353.     ply:GetUserGroup() == "vip+" or
  354.     ply:GetUserGroup() == "admin" or
  355.     ply:GetUserGroup() == "superadmin" end,
  356. })
  357. TEAM_ASS = DarkRP.createJob("Assassin",{
  358. color = Color(0, 0, 0, 255),
  359. model = "models/player/superheroes/batman.mdl",
  360. description = [[You are the best of the best of Hitmen. You are as
  361. stealthy as Batman. Same rules as Hitman apply to
  362. you.]],
  363. weapons = {"weapons_fists","fas2_ak47","lockpick"},
  364. command = "assasin",
  365. max = 1,
  366. salary = 45,
  367. admin = 0,
  368. vote = false,
  369. hasLicense = false,
  370. customCheck = function(ply) return ply:GetUserGroup() == "vip" or
  371.     ply:GetUserGroup() == "vip+" or
  372.     ply:GetUserGroup() == "admin" or
  373.     ply:GetUserGroup() == "superadmin" or
  374.    ply:GetUserGroup() == "Owner" end,
  375. })  
  376. TEAM_LORD = DarkRP.createJob("Hobo Lord ",{
  377. color = Color(51, 51, 0, 255),
  378. model = "models/player/zombiefast.mdl",
  379. description = [[You are the Hobo Lord,You tell the Hobo\'s What to
  380. do.
  381. You may raid, and Kill the government/Call War on
  382. them, ONLY FOR A LEGIT REASON.]],
  383. weapons = {"lockpick","weapons_fists","unarrest_stick"},
  384. command = "lord",
  385. max = 1,
  386. salary = 0,
  387. admin = 0,
  388. vote = false,
  389. hasLicense = false,
  390. NeedToChangeFrom = TEAM_HOBO,
  391. customCheck = function(ply) return ply:GetUserGroup() == "donator+" or
  392.     ply:GetUserGroup() == "vip" or
  393.     ply:GetUserGroup() == "vip+" or
  394.     ply:GetUserGroup() == "admin" or
  395.     ply:GetUserGroup() == "superadmin" or  
  396.    ply:GetUserGroup() == "Owner" end,
  397.     })
  398. TEAM_STEAL = DarkRP.createJob("Thief",{
  399. color = Color(255, 51, 0, 255),
  400. model = {
  401. "models/player/Group01/Female_01.mdl",
  402. "models/player/Group01/Female_02.mdl",
  403. "models/player/Group01/Female_03.mdl",
  404. "models/player/Group01/Female_04.mdl",
  405. "models/player/Group01/Female_06.mdl",
  406. "models/player/group01/male_01.mdl",
  407. "models/player/Group01/Male_02.mdl",
  408. "models/player/Group01/male_03.mdl",
  409. "models/player/Group01/Male_04.mdl",
  410. "models/player/Group01/Male_05.mdl",
  411. "models/player/Group01/Male_06.mdl",
  412. "models/player/Group01/Male_07.mdl",
  413. "models/player/Group01/Male_08.mdl",
  414. "models/player/Group01/Male_09.mdl"
  415. },
  416. description = [[You are a thief. You steal shit, you can raid but
  417. you cannot raid solo, you must have a buddy and
  418. must advert mug, and raid.]],
  419. weapons = {"fas2_dv2","lockpick"},
  420. command = "steal",
  421. max = 6,
  422. salary = 45,
  423. admin = 0,
  424. vote = false,
  425. hasLicense = false,
  426. })
  427. /*---------------------------------------------------------------------------
  428. Define which team joining players spawn into and what team you change to if demoted
  429. ---------------------------------------------------------------------------*/
  430. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  431.  
  432.  
  433. /*---------------------------------------------------------------------------
  434. Define which teams belong to civil protection
  435. Civil protection can set warrants, make people wanted and do some other police related things
  436. ---------------------------------------------------------------------------*/
  437. GAMEMODE.CivilProtection = {
  438.     [TEAM_POLICE] = true,
  439.     [TEAM_CHIEF] = true,
  440.     [TEAM_MAYOR] = true,
  441.    [TEAM_SWAT] = true,
  442.     [TEAM_SNIPER] = true,
  443.     }
  444. /*---------------------------------------------------------------------------
  445. Jobs that are hitmen (enables the hitman menu)
  446. ---------------------------------------------------------------------------*/
  447. DarkRP.addHitmanTeam(TEAM_HIT, TEAM_ASS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement