Advertisement
Guest User

Untitled

a guest
Feb 16th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.10 KB | None | 0 0
  1. -- People often copy jobs. When they do, the GM table does not exist anymore.
  2. -- This line makes the job code work both inside and outside of gamemode files.
  3. -- You should not copy this line into your code.
  4. local GAMEMODE = GAMEMODE or GM
  5. --[[--------------------------------------------------------
  6. Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
  7. --------------------------------------------------------]]
  8. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  9. color = Color(20, 150, 20, 255),
  10. model = {
  11. "models/player/Group01/Female_01.mdl",
  12. "models/player/Group01/Female_02.mdl",
  13. "models/player/Group01/Female_03.mdl",
  14. "models/player/Group01/Female_04.mdl",
  15. "models/player/Group01/Female_06.mdl",
  16. "models/player/group01/male_01.mdl",
  17. "models/player/Group01/Male_02.mdl",
  18. "models/player/Group01/male_03.mdl",
  19. "models/player/Group01/Male_04.mdl",
  20. "models/player/Group01/Male_05.mdl",
  21. "models/player/Group01/Male_06.mdl",
  22. "models/player/Group01/Male_07.mdl",
  23. "models/player/Group01/Male_08.mdl",
  24. "models/player/Group01/Male_09.mdl"
  25. },
  26. description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
  27. weapons = {},
  28. command = "citizen",
  29. max = 0,
  30. salary = GAMEMODE.Config.normalsalary,
  31. admin = 0,
  32. vote = false,
  33. hasLicense = false,
  34. candemote = false,
  35. category = "Citizens",
  36. })
  37.  
  38. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  39. color = Color(25, 25, 170, 255),
  40. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  41. description = [[The protector of every citizen that lives in the city.
  42. You have the power to arrest criminals and protect innocents.
  43. Hit a player with your arrest baton to put them in jail.
  44. Bash a player with a stunstick and they may learn to obey the law.
  45. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  46. The Battering Ram can also unfreeze frozen props (if enabled).
  47. Type /wanted <name> to alert the public to the presence of a criminal.]],
  48. weapons = {"arrest_stick", "unarrest_stick", "m9k_usp", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
  49. command = "cp",
  50. max = 4,
  51. salary = 100,
  52. admin = 0,
  53. vote = false,
  54. hasLicense = true,
  55. ammo = {
  56. ["pistol"] = 60,
  57. },
  58. category = "Civil Protection",
  59. })
  60.  
  61. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  62. color = Color(255, 140, 0, 255),
  63. model = "models/player/monk.mdl",
  64. description = [[A Gun Dealer is the only person who can sell guns to other people.
  65. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  66. weapons = {},
  67. command = "gundealer",
  68. max = 4,
  69. salary = GAMEMODE.Config.normalsalary,
  70. admin = 0,
  71. vote = false,
  72. hasLicense = false,
  73. category = "Citizens",
  74. })
  75.  
  76. TEAM_MEDIC = DarkRP.createJob("Medic", {
  77. color = Color(47, 79, 79, 255),
  78. model = "models/player/kleiner.mdl",
  79. description = [[With your medical knowledge you work to restore players to full health.
  80. Without a medic, people cannot be healed.
  81. Left click with the Medical Kit to heal other players.
  82. Right click with the Medical Kit to heal yourself.]],
  83. weapons = {"med_kit"},
  84. command = "medic",
  85. max = 3,
  86. salary = GAMEMODE.Config.normalsalary,
  87. admin = 0,
  88. vote = false,
  89. hasLicense = false,
  90. medic = true,
  91. category = "Citizens",
  92. })
  93.  
  94. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  95. color = Color(20, 20, 255, 255),
  96. model = "models/player/combine_soldier_prisonguard.mdl",
  97. description = [[The Chief is the leader of the Civil Protection unit.
  98. Coordinate the police force to enforce law in the city.
  99. Hit a player with arrest baton to put them in jail.
  100. Bash a player with a stunstick and they may learn to obey the law.
  101. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  102. Type /wanted <name> to alert the public to the presence of a criminal.
  103. Type /jailpos to set the Jail Position]],
  104. weapons = {"arrest_stick", "unarrest_stick", "m9k_usp", "m9k_m4a1", "m9k_mossberg590", "stunstick", "door_ram", "weaponchecker"},
  105. command = "chief",
  106. max = 1,
  107. salary = 150,
  108. admin = 0,
  109. vote = false,
  110. hasLicense = true,
  111. chief = true,
  112. ammo = {
  113. ["pistol"] = 60,
  114. },
  115. category = "Civil Protection",
  116. })
  117.  
  118. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  119. color = Color(150, 20, 20, 255),
  120. model = "models/player/breen.mdl",
  121. description = [[The Mayor of the city creates laws to govern the city.
  122. If you are the mayor you may create and accept warrants.
  123. Type /wanted <name> to warrant a player.
  124. Type /jailpos to set the Jail Position.
  125. Type /lockdown initiate a lockdown of the city.
  126. Everyone must be inside during a lockdown.
  127. The cops patrol the area.
  128. /unlockdown to end a lockdown]],
  129. weapons = {"unarrest_stick", "weaponchecker"},
  130. command = "mayor",
  131. max = 1,
  132. salary = 200,
  133. admin = 0,
  134. vote = true,
  135. hasLicense = true,
  136. mayor = true,
  137. category = "Civil Protection",
  138. PlayerDeath = function(ply, weapon, killer)
  139. ply:teamBan()
  140. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  141. if killer:IsPlayer() then
  142. DarkRP.notifyAll(0, 4, "The mayor has been killed and is therefor demoted.")
  143. else
  144. DarkRP.notifyAll(0, 4, "The mayor has died and is therefor demoted.")
  145. end
  146. end
  147. })
  148.  
  149. TEAM_HOBO = DarkRP.createJob("Hobo", {
  150. color = Color(80, 45, 0, 255),
  151. model = "models/player/corpse1.mdl",
  152. description = [[The lowest member of society. Everybody laughs at you.
  153. You have no home.
  154. Beg for your food and money
  155. Sing for everyone who passes to get money
  156. Make your own wooden home somewhere in a corner or outside someone else's door]],
  157. weapons = {"weapon_bugbait"},
  158. command = "hobo",
  159. max = 5,
  160. salary = 0,
  161. admin = 0,
  162. vote = false,
  163. hasLicense = false,
  164. candemote = false,
  165. hobo = true,
  166. category = "Citizens",
  167. })
  168.  
  169. TEAM_THIEF = DarkRP.createJob("Thief", {
  170. color = Color(217, 217, 217, 255),
  171. model = {"models/player/phoenix.mdl"},
  172. description = [[You're a thief, steal stuff.]],
  173. weapons = {"lockpick", "keypad_cracker"},
  174. command = "thief",
  175. max = 8,
  176. salary = 0,
  177. admin = 0,
  178. vote = false,
  179. hasLicense = false,
  180. candemote = false,
  181. category = "Criminals"
  182. })
  183.  
  184. TEAM_MAFIA = DarkRP.createJob("Mafia Member", {
  185. color = Color(166, 27, 27, 255),
  186. model = {
  187. "models/fearless/mafia02.mdl",
  188. "models/fearless/mafia04.mdl",
  189. "models/fearless/mafia06.mdl",
  190. "models/fearless/mafia07.mdl",
  191. "models/fearless/mafia09.mdl"
  192. },
  193. description = [[You are a member of the Mafia. You must obey the Godfather's every command.]],
  194. weapons = {"csgo_bayonet"},
  195. command = "mafia",
  196. max = 5,
  197. salary = 65,
  198. admin = 0,
  199. vote = false,
  200. hasLicense = false,
  201. candemote = false,
  202. category = "Mafia"
  203. })
  204.  
  205. TEAM_GODFATHER = DarkRP.createJob("Godfather", {
  206. color = Color(166, 27, 27, 255),
  207. model = {"models/fearless/don1.mdl"},
  208. description = [[You are the Godfather of the Mafia. You direct the Mafia's every command.]],
  209. weapons = {"lockpick", "keypad_cracker", "csgo_bayonet", "m9k_colt1911"},
  210. command = "godfather",
  211. max = 1,
  212. salary = 85,
  213. admin = 0,
  214. vote = false,
  215. hasLicense = false,
  216. candemote = false,
  217. category = "Mafia"
  218. })
  219.  
  220. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  221. color = Color(186, 183, 27, 255),
  222. model = {"models/player/leet.mdl"},
  223. description = [[You're a Hitman, you take hit requests from people and make money while doing it.]],
  224. weapons = {},
  225. command = "hitman",
  226. max = 4,
  227. salary = 55,
  228. admin = 0,
  229. vote = false,
  230. hasLicense = false,
  231. candemote = false,
  232. category = "Criminals"
  233. })
  234.  
  235. TEAM_STAFF = DarkRP.createJob("Staff on Duty", {
  236. color = Color(255, 0, 0, 255),
  237. model = {"models/player/combine_super_soldier.mdl"},
  238. description = [[You are a Staff on Duty, you enforce the rules of LifeRP.]],
  239. weapons = {"weapon_keypadchecker", "unarrest_stick", "stunstick", "arrest_stick", "door_ram", "weaponchecker"},
  240. command = "staff",
  241. max = 5,
  242. salary = 0,
  243. admin = 0,
  244. vote = false,
  245. hasLicense = false,
  246. candemote = false,
  247. category = "Staff",
  248. customCheck = function(ply) return CLIENT or
  249. table.HasValue({"Donor-Admin", "Trial-Moderator", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
  250. end,
  251. CustomCheckFailMsg = "This job is for staff only!",
  252. })
  253.  
  254. TEAM_GUARD = DarkRP.createJob("Security Guard", {
  255. color = Color(176, 176, 176, 255),
  256. model = {"models/player/odessa.mdl"},
  257. description = [[You are a Security Guard, you protect the person who hires you.]],
  258. weapons = {},
  259. command = "securityguard",
  260. max = 4,
  261. salary = 45,
  262. admin = 0,
  263. vote = false,
  264. hasLicense = false,
  265. candemote = false,
  266. category = "Citizens"
  267. })
  268.  
  269. TEAM_PROTHIEF = DarkRP.createJob("Professional Thief", {
  270. color = Color(150, 150, 150, 255),
  271. model = {"models/player/arctic.mdl"},
  272. description = [[You are a Professional Thief, you have more years of experience than a regular thief, and have upgraded raiding tools.]],
  273. weapons = {"pro_lockpick", "prokeypadcracker"},
  274. command = "professionalthief",
  275. max = 8,
  276. salary = 0,
  277. admin = 0,
  278. vote = false,
  279. hasLicense = false,
  280. candemote = false,
  281. category = "VIP Jobs",
  282. customCheck = function(ply) return CLIENT or
  283. table.HasValue({"VIP", "Donor-Admin", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
  284. end,
  285. CustomCheckFailMsg = "This job is VIP only!",
  286. })
  287.  
  288. TEAM_PROHITMAN = DarkRP.createJob("Professional Hitman", {
  289. color = Color(186, 183, 27, 255),
  290. model = {"models/player/leet.mdl"},
  291. description = [[You are a Professional Hitman, you have more years of experience than a regular hitman. With your years of experience, you have acquired equipment to use to kill your targets quicker.]],
  292. weapons = {"m9k_intervention", "csgo_bayonet", "m9k_colt1911"},
  293. command = "professionalhitman",
  294. max = 4,
  295. salary = 75,
  296. admin = 0,
  297. vote = false,
  298. hasLicense = false,
  299. candemote = false,
  300. category = "VIP Jobs",
  301. customCheck = function(ply) return CLIENT or
  302. table.HasValue({"VIP", "Donor-Admin", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
  303. end,
  304. CustomCheckFailMsg = "This job is VIP only!",
  305. })
  306.  
  307. TEAM_SS = DarkRP.createJob("Secret Service", {
  308. color = Color(101, 126, 255, 255),
  309. model = {
  310. "models/fearless/bsuit04.mdl",
  311. "models/fearless/bsuit01.mdl"
  312. },
  313. description = [[You are a member of the Secret Service, your job is to protect the mayor at all costs.]],
  314. weapons = {"arrest_stick", "stunstick", "unarrest_stick", "weaponchecker", "m9k_m29satan"},
  315. command = "secretservice",
  316. max = 4,
  317. salary = 100,
  318. admin = 0,
  319. vote = true,
  320. hasLicense = true,
  321. candemote = true,
  322. category = "Civil Protection"
  323. })
  324.  
  325. TEAM_HOBOLEADER = DarkRP.createJob("Hobo Leader", {
  326. color = ,
  327. model = {"models/player/soldier_stripped.mdl"},
  328. description = [[You are the Hobo Leader, you command the hobos every command. With you around you can tell the hobos to raid, mug, or do any crime related activity.]],
  329. weapons = {"lockpick", "keypad_cracker", "weapon_bugbait"},
  330. command = "hoboleader",
  331. max = 1,
  332. salary = 0,
  333. admin = 0,
  334. vote = false,
  335. hasLicense = false,
  336. candemote = false,
  337. category = "Citizens"
  338. })
  339.  
  340. EAM_BMD = DarkRP.createJob("Black Market Dealer", {
  341. color = Color(154, 59, 166, 255),
  342. model = {"models/player/gman_high.mdl"},
  343. description = [[You are a Black Market Dealer, you sell lockpicks and keypad crackers to any person who requests them. Make sure you aren't caught by the police!]],
  344. weapons = {},
  345. command = "blackmarketdealer",
  346. max = 4,
  347. salary = 45,
  348. admin = 0,
  349. vote = false,
  350. hasLicense = false,
  351. candemote = false,
  352. category = "Merchants"
  353. })
  354.  
  355. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  356. TEAM_COOK = DarkRP.createJob("Cook", {
  357. color = Color(238, 99, 99, 255),
  358. model = "models/player/mossman.mdl",
  359. description = [[As a cook, it is your responsibility to feed the other members of your city.
  360. You can spawn a microwave and sell the food you make:
  361. /buymicrowave]],
  362. weapons = {},
  363. command = "cook",
  364. max = 2,
  365. salary = 45,
  366. admin = 0,
  367. vote = false,
  368. hasLicense = false,
  369. cook = true
  370. })
  371. end
  372.  
  373. -- Compatibility for when default teams are disabled
  374. TEAM_CITIZEN = TEAM_CITIZEN or -1
  375. TEAM_POLICE = TEAM_POLICE or -1
  376. TEAM_GANG = TEAM_GANG or -1
  377. TEAM_MOB = TEAM_MOB or -1
  378. TEAM_GUN = TEAM_GUN or -1
  379. TEAM_MEDIC = TEAM_MEDIC or -1
  380. TEAM_CHIEF = TEAM_CHIEF or -1
  381. TEAM_MAYOR = TEAM_MAYOR or -1
  382. TEAM_HOBO = TEAM_HOBO or -1
  383. TEAM_COOK = TEAM_COOK or -1
  384.  
  385. -- Door groups
  386. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SS)
  387. AddDoorGroup("Gundealer only", TEAM_GUN)
  388.  
  389.  
  390. -- Agendas
  391. DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  392. DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE, TEAM_SS})
  393. DarkRP.createAgenda("Mafia agenda", {TEAM_GODFATHER}, {TEAM_MAFIA})
  394.  
  395. -- Group chats
  396. DarkRP.createGroupChat(function(ply) return ply:isCP() end)
  397. DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
  398. DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
  399.  
  400. -- Initial team when first spawning
  401. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  402.  
  403. -- Teams that belong to Civil Protection
  404. GAMEMODE.CivilProtection = {
  405. [TEAM_POLICE] = true,
  406. [TEAM_CHIEF] = true,
  407. [TEAM_MAYOR] = true,
  408. }
  409.  
  410. -- Hitman team
  411. DarkRP.addHitmanTeam(TEAM_HITMAN)
  412.  
  413. -- Demote groups
  414. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  415. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
  416.  
  417. -- Default categories
  418. DarkRP.createCategory{
  419. name = "Citizens",
  420. categorises = "jobs",
  421. startExpanded = true,
  422. color = Color(0, 107, 0, 255),
  423. canSee = fp{fn.Id, true},
  424. sortOrder = 100,
  425. }
  426.  
  427. DarkRP.createCategory{
  428. name = "Civil Protection",
  429. categorises = "jobs",
  430. startExpanded = true,
  431. color = Color(25, 25, 170, 255),
  432. canSee = fp{fn.Id, true},
  433. sortOrder = 101,
  434. }
  435.  
  436. DarkRP.createCategory{
  437. name = "Mafia",
  438. categorises = "jobs",
  439. startExpanded = true,
  440. color = Color(255, 0, 0, 255),
  441. canSee = fp{fn.Id, true},
  442. sortOrder = 101,
  443. }
  444.  
  445. DarkRP.createCategory{
  446. name = "Merchants",
  447. categorises = "jobs",
  448. startExpanded = true,
  449. color = Color(139, 176, 255, 255),
  450. canSee = fp{fn.Id, true},
  451. sortOrder = 101,
  452. }
  453.  
  454. DarkRP.createCategory{
  455. name = "VIP Jobs",
  456. categorises = "jobs",
  457. startExpanded = true,
  458. color = Color(75, 75, 75, 255),
  459. canSee = fp{fn.Id, true},
  460. sortOrder = 105,
  461. }
  462.  
  463. DarkRP.createCategory{
  464. name = "Criminals",
  465. categorises = "jobs",
  466. startExpanded = true,
  467. color = Color(75, 75, 75, 255),
  468. canSee = fp{fn.Id, true},
  469. sortOrder = 101,
  470. }
  471.  
  472. DarkRP.createCategory{
  473. name = "Staff",
  474. categorises = "jobs",
  475. startExpanded = true,
  476. color = Color(75, 75, 75, 255),
  477. canSee = fp{fn.Id, true},
  478. sortOrder = 254,
  479. }
  480. DarkRP.createCategory{
  481. name = "Other",
  482. categorises = "jobs",
  483. startExpanded = true,
  484. color = Color(0, 107, 0, 255),
  485. canSee = fp{fn.Id, true},
  486. sortOrder = 255,
  487. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement