Advertisement
Guest User

DarkRP Custom Jobs

a guest
Jul 22nd, 2014
3,688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.24 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.  
  21. TEAM_ADMIN = DarkRP.createJob("Administration", {
  22. color = Color(255, 0, 0, 255),
  23. model = "models/dean/chase.mdl",
  24. description = [[Administration on-duty.]],
  25. weapons = {"arrest_stick", "unarrest_stick", "weapon_lordi_sledgehammer"},
  26. command = "admin",
  27. max = 5,
  28. salary = 0,
  29. admin = 2,
  30. vote = false,
  31. hasLicense = true,
  32. })
  33.  
  34. TEAM_HOBO = DarkRP.createJob("Hobo", {
  35. color = Color(100, 50, 0, 255),
  36. model = "models/player/danboard.mdl",
  37. description = [[You're homeless, You beg for your income.]],
  38. weapons = {"weapon_bugbait"},
  39. command = "hobo",
  40. max = 5,
  41. salary = 0,
  42. admin = 0,
  43. vote = false,
  44. hasLicense = false,
  45. })
  46.  
  47. TEAM_GUN = DarkRP.createJob("Gundealer", {
  48. color = Color(255, 128, 0, 255),
  49. model = "models/the walking dead survival instincts/daryl_dixon.mdl",
  50. description = [[You sell and distribute firearms.]],
  51. weapons = {},
  52. command = "gundealer",
  53. max = 2,
  54. salary = 75,
  55. admin = 0,
  56. vote = false,
  57. hasLicense = false,
  58. })
  59.  
  60. TEAM_HGUN = DarkRP.createJob("Heavy Gundealer", {
  61. color = Color(255, 128, 0, 255),
  62. model = "models/the walking dead survival instincts/merle_dixon.mdl",
  63. description = [[You sell and distribute heavy firearms.]],
  64. weapons = {},
  65. command = "gundealer",
  66. max = 2,
  67. salary = 75,
  68. admin = 0,
  69. vote = false,
  70. hasLicense = false,
  71. })
  72.  
  73. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  74. color = Color(150, 20, 20, 255),
  75. model = "models/player/breen.mdl",
  76. description = [[The Mayor of the city creates laws to govern the city.
  77. If you are the mayor you may create and accept warrants.
  78. Type /wanted <name> to warrant a player.
  79. Type /jailpos to set the Jail Position.
  80. Type /lockdown initiate a lockdown of the city.
  81. Everyone must be inside during a lockdown.
  82. The cops patrol the area.
  83. /unlockdown to end a lockdown]],
  84. weapons = {},
  85. command = "mayor",
  86. max = 1,
  87. salary = 100,
  88. admin = 0,
  89. vote = true,
  90. hasLicense = true,
  91. mayor = true
  92. })
  93.  
  94. TEAM_POLICE = DarkRP.createJob("S.W.A.T.", {
  95. color = Color(25, 25, 170, 255),
  96. model = "models/player/01ar_combine_soldier01.mdl",
  97. description = [[You're called in to handle what CPs can't.]],
  98. weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "m9k_m16a4_acog", "m9k_m3"},
  99. command = "swat",
  100. max = 4,
  101. salary = 80,
  102. admin = 0,
  103. vote = true,
  104. hasLicense = true,
  105. ammo = {}
  106. })
  107.  
  108. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  109. color = Color(20, 20, 255, 255),
  110. model = "models/elispolice/police.mdl",
  111. description = [[The Chief is the leader of the Civil Protection unit.
  112. Coordinate the police force to enforce law in the city.
  113. Hit a player with arrest baton to put them in jail.
  114. Bash a player with a stunstick and they may learn to obey the law.
  115. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  116. Type /wanted <name> to alert the public to the presence of a criminal.
  117. Type /jailpos to set the Jail Position]],
  118. weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker", "m9k_m3"},
  119. command = "chief",
  120. max = 1,
  121. salary = 80,
  122. admin = 0,
  123. vote = false,
  124. hasLicense = true,
  125. chief = true,
  126. NeedToChangeFrom = TEAM_POLICE,
  127. ammo = {}
  128. })
  129.  
  130. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  131. color = Color(25, 25, 170, 255),
  132. model = {
  133. "models/humans/nypd1940/male_01.mdl",
  134. "models/humans/nypd1940/male_02.mdl",
  135. "models/humans/nypd1940/male_03.mdl",
  136. "models/humans/nypd1940/male_04.mdl",
  137. "models/humans/nypd1940/male_05.mdl",
  138. "models/humans/nypd1940/male_06.mdl",
  139. "models/humans/nypd1940/male_07.mdl",
  140. "models/humans/nypd1940/male_08.mdl",
  141. "models/humans/nypd1940/male_09.mdl",
  142. },
  143. description = [[The protector of every citizen that lives in the city.
  144. You have the power to arrest criminals and protect innocents.
  145. Hit a player with your arrest baton to put them in jail.
  146. Bash a player with a stunstick and they may learn to obey the law.
  147. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  148. The Battering Ram can also unfreeze frozen props (if enabled).
  149. Type /wanted <name> to alert the public to the presence of a criminal.]],
  150. weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "m9k_m4a1"},
  151. command = "cp",
  152. max = 5,
  153. salary = 65,
  154. admin = 0,
  155. vote = true,
  156. hasLicense = true,
  157. ammo = {}
  158. })
  159.  
  160. TEAM_MAFIA = DarkRP.createJob("Mafia boss", {
  161. color = Color(25, 25, 25, 255),
  162. model = "models/vito.mdl",
  163. description = [[The Mob boss is the boss of the criminals in the city.
  164. With his power he coordinates the gangsters and forms an efficient crime organization.
  165. He has the ability to break into houses by using a lockpick.
  166. The Mob boss posesses the ability to unarrest you.]],
  167. weapons = {"lockpick", "unarrest_stick"},
  168. command = "mobboss",
  169. max = 1,
  170. salary = 75,
  171. admin = 0,
  172. vote = false,
  173. hasLicense = false
  174. })
  175.  
  176. TEAM_MAFIAMEMBER = DarkRP.createJob("Mafia Member", {
  177. color = Color(75, 75, 75, 255),
  178. model = {
  179. "models/humans/mafia/male_02.mdl",
  180. "models/humans/mafia/male_03.mdl",
  181. "models/humans/mafia/male_04.mdl",
  182. "models/humans/mafia/male_05.mdl",
  183. "models/humans/mafia/male_06.mdl",
  184. "models/humans/mafia/male_07.mdl",
  185. "models/humans/mafia/male_08.mdl",
  186. "models/humans/mafia/male_09.mdl",
  187. },
  188. description = [[The lowest person of crime.
  189. A gangster generally works for the Mobboss who runs the crime family.
  190. The Mob boss sets your agenda and you follow it or you might be punished.]],
  191. weapons = {},
  192. command = "gangster",
  193. max = 5,
  194. salary = 50,
  195. admin = 0,
  196. vote = false,
  197. hasLicense = false
  198. })
  199.  
  200. TEAM_CARTELBOSS = AddExtraTeam("Cartel Boss", {
  201. color = Color(25, 25, 25, 255),
  202. model = "models/player/gman_high.mdl",
  203. description = [[The cartel boss is the boss of the criminals in the city.
  204. With his power he coordinates the gangsters and forms an efficent crime
  205. organization.
  206. He has the ability to break into houses by using a lockpick.
  207. The cartel boss also can unarrest you.]],
  208. weapons = {"lockpick", "unarrest_stick"},
  209. command = "mobboss",
  210. max = 1,
  211. salary = 60,
  212. admin = 0,
  213. vote = false,
  214. hasLicense = false
  215. })
  216.  
  217. TEAM_CARTELMEMBER = AddExtraTeam("Cartel Member", {
  218. color = Color(75, 75, 75, 255),
  219. model = {
  220. "models/player/Group03/Female_02.mdl",
  221. "models/player/Group03/Female_03.mdl",
  222. "models/player/Group03/Female_04.mdl",
  223. "models/player/Group03/Female_05.mdl",
  224. "models/player/group03/male_01.mdl",
  225. "models/player/Group03/Male_02.mdl",
  226. "models/player/Group03/male_03.mdl",
  227. "models/player/Group03/Male_04.mdl",
  228. "models/player/Group03/Male_05.mdl",
  229. "models/player/Group03/Male_06.mdl",
  230. "models/player/Group03/Male_07.mdl",
  231. "models/player/Group03/Male_08.mdl",
  232. "models/player/Group03/Male_09.mdl"
  233. },
  234. description = [[The lowest person of crime.
  235. A cartel member works for the cartel boss who runs the crime family.
  236. The cartel boss sets your agenda and you follow it or you might be punished.]],
  237. weapons = {"lockpick"},
  238. command = "gangster",
  239. max = 5,
  240. salary = 45,
  241. admin = 0,
  242. vote = false,
  243. hasLicense = false
  244. })
  245.  
  246. TEAM_MEDIC = DarkRP.createJob("Medic", {
  247. color = Color(47, 79, 79, 255),
  248. model = "models/suits/male_09_closed_tie.mdl",
  249. description = [[With your medical knowledge you work to restore players to full health.
  250. Without a medic, people cannot be healed.
  251. Left click with the Medical Kit to heal other players.
  252. Right click with the Medical Kit to heal yourself.]],
  253. weapons = {"med_kit"},
  254. command = "medic",
  255. max = 4,
  256. salary = 65,
  257. admin = 0,
  258. vote = false,
  259. hasLicense = false,
  260. medic = true
  261. })
  262.  
  263. TEAM_THIEF = DarkRP.createJob("Thief", {
  264. color = Color(129, 129, 129, 255),
  265. model = "models/suits/robber_tuckedtie.mdl",
  266. description = [[You rob people of their riches.]],
  267. weapons = {"keypad_cracker", "lockpick"},
  268. command = "thief",
  269. max = 3,
  270. salary = 45,
  271. admin = 0,
  272. vote = false,
  273. hasLicense = false,
  274. })
  275.  
  276. TEAM_HITMAN = AddExtraTeam("Hitman", {
  277. color = Color(20, 150, 20, 255),
  278. model = "models/player/john_marston.mdl",
  279. description = [[People pay you to murder others.
  280. You're only allowed to kill if you've been payed.
  281. Before you start allways type:
  282. /advert HIT ACCEPTED = You accepted a hit.
  283. /advert HIT DONE = You killed the target.
  284. Do not abuse your permission to kill people!.]],
  285. weapons = {"m9k_remington1858", "m9k_winchester73"},
  286. command = "hitman",
  287. max = 2,
  288. salary = 65,
  289. admin = 0,
  290. vote = false,
  291. hasLicense = true,
  292. })
  293.  
  294. TEAM_GUARD = DarkRP.createJob("Guard", {
  295. color = Color(0, 255, 255, 255),
  296. model = {
  297. "models/player/guard_pack/guard_01.mdl",
  298. "models/player/guard_pack/guard_02.mdl",
  299. "models/player/guard_pack/guard_03.mdl",
  300. "models/player/guard_pack/guard_04.mdl",
  301. "models/player/guard_pack/guard_05.mdl",
  302. "models/player/guard_pack/guard_06.mdl",
  303. "models/player/guard_pack/guard_07.mdl",
  304. "models/player/guard_pack/guard_08.mdl",
  305. "models/player/guard_pack/guard_09.mdl",
  306. }
  307. description = [[You're hired as security.]],
  308. weapons = {"m9k_hk45", "weaponchecker"},
  309. command = "guard",
  310. max = 4,
  311. salary = 45,
  312. admin = 0,
  313. vote = false,
  314. hasLicense = true,
  315. })
  316.  
  317. TEAM_RUNNER = DarkRP.createJob("Free-Runner", {
  318. color = Color(0, 255, 255, 255),
  319. model = "models/nikout/ac3/connor_playermodel.mdl",
  320. description = [[You've developed some hardcore parkour!]],
  321. weapons = {"climb_swep2"},
  322. command = "runner",
  323. max = 2,
  324. salary = 45,
  325. admin = 0,
  326. vote = false,
  327. hasLicense = false,
  328. })
  329.  
  330. /*---------------------------------------------------------------------------
  331. Define which team joining players spawn into and what team you change to if demoted
  332. ---------------------------------------------------------------------------*/
  333. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  334.  
  335.  
  336. /*---------------------------------------------------------------------------
  337. Define which teams belong to civil protection
  338. Civil protection can set warrants, make people wanted and do some other police related things
  339. ---------------------------------------------------------------------------*/
  340. GAMEMODE.CivilProtection = {
  341. [TEAM_POLICE] = true,
  342. [TEAM_CHIEF] = true,
  343. [TEAM_MAYOR] = true,
  344. }
  345.  
  346. /*---------------------------------------------------------------------------
  347. Jobs that are hitmen (enables the hitman menu)
  348. ---------------------------------------------------------------------------*/
  349. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement