Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.80 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_CITIZEN = DarkRP.createJob("Citizen", {
  21. color = Color(20, 150, 20, 255),
  22. model = {
  23. "models/player/Group01/Female_01.mdl",
  24. "models/player/Group01/Female_02.mdl",
  25. "models/player/Group01/Female_03.mdl",
  26. "models/player/Group01/Female_04.mdl",
  27. "models/player/Group01/Female_06.mdl",
  28. "models/player/group01/male_01.mdl",
  29. "models/player/Group01/Male_02.mdl",
  30. "models/player/Group01/male_03.mdl",
  31. "models/player/Group01/Male_04.mdl",
  32. "models/player/Group01/Male_05.mdl",
  33. "models/player/Group01/Male_06.mdl",
  34. "models/player/Group01/Male_07.mdl",
  35. "models/player/Group01/Male_08.mdl",
  36. "models/player/Group01/Male_09.mdl"
  37. },
  38. 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.]],
  39. weapons = {},
  40. command = "citizen",
  41. max = 0,
  42. salary = GAMEMODE.Config.normalsalary,
  43. admin = 0,
  44. vote = false,
  45. hasLicense = false,
  46. candemote = false,
  47. category = "Citizens",
  48. })
  49.  
  50. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  51. color = Color(25, 25, 170, 255),
  52. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  53. description = [[The protector of every citizen that lives in the city.
  54. You have the power to arrest criminals and protect innocents.
  55. Hit a player with your arrest baton to put them in jail.
  56. Bash a player with a stunstick and they may learn to obey the law.
  57. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  58. The Battering Ram can also unfreeze frozen props (if enabled).
  59. Type /wanted <name> to alert the public to the presence of a criminal.]],
  60. weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
  61. command = "cp",
  62. max = 4,
  63. salary = GAMEMODE.Config.normalsalary * 1.45,
  64. admin = 0,
  65. vote = true,
  66. hasLicense = true,
  67. ammo = {
  68. ["pistol"] = 60,
  69. },
  70. category = "Civil Protection",
  71. })
  72.  
  73. TEAM_GANG = DarkRP.createJob("Gangster", {
  74. color = Color(75, 75, 75, 255),
  75. model = {
  76. "models/player/Group03/Female_01.mdl",
  77. "models/player/Group03/Female_02.mdl",
  78. "models/player/Group03/Female_03.mdl",
  79. "models/player/Group03/Female_04.mdl",
  80. "models/player/Group03/Female_06.mdl",
  81. "models/player/group03/male_01.mdl",
  82. "models/player/Group03/Male_02.mdl",
  83. "models/player/Group03/male_03.mdl",
  84. "models/player/Group03/Male_04.mdl",
  85. "models/player/Group03/Male_05.mdl",
  86. "models/player/Group03/Male_06.mdl",
  87. "models/player/Group03/Male_07.mdl",
  88. "models/player/Group03/Male_08.mdl",
  89. "models/player/Group03/Male_09.mdl"},
  90. description = [[The lowest person of crime.
  91. A gangster generally works for the Mobboss who runs the crime family.
  92. The Mob boss sets your agenda and you follow it or you might be punished.]],
  93. weapons = {},
  94. command = "gangster",
  95. max = 3,
  96. salary = GAMEMODE.Config.normalsalary,
  97. admin = 0,
  98. vote = false,
  99. hasLicense = false,
  100. category = "Gangsters",
  101. })
  102.  
  103. TEAM_MOB = DarkRP.createJob("Mob boss", {
  104. color = Color(25, 25, 25, 255),
  105. model = "models/player/gman_high.mdl",
  106. description = [[The Mob boss is the boss of the criminals in the city.
  107. With his power he coordinates the gangsters and forms an efficient crime organization.
  108. He has the ability to break into houses by using a lockpick.
  109. The Mob boss posesses the ability to unarrest you.]],
  110. weapons = {"lockpick", "unarrest_stick"},
  111. command = "mobboss",
  112. max = 1,
  113. salary = GAMEMODE.Config.normalsalary * 1.34,
  114. admin = 0,
  115. vote = false,
  116. hasLicense = false,
  117. category = "Gangsters",
  118. })
  119.  
  120. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  121. color = Color(255, 140, 0, 255),
  122. model = "models/player/monk.mdl",
  123. description = [[A Gun Dealer is the only person who can sell guns to other people.
  124. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  125. weapons = {},
  126. command = "gundealer",
  127. max = 2,
  128. salary = GAMEMODE.Config.normalsalary,
  129. admin = 0,
  130. vote = false,
  131. hasLicense = false,
  132. category = "Citizens",
  133. })
  134.  
  135. TEAM_MEDIC = DarkRP.createJob("Medic", {
  136. color = Color(47, 79, 79, 255),
  137. model = "models/player/kleiner.mdl",
  138. description = [[With your medical knowledge you work to restore players to full health.
  139. Without a medic, people cannot be healed.
  140. Left click with the Medical Kit to heal other players.
  141. Right click with the Medical Kit to heal yourself.]],
  142. weapons = {"med_kit"},
  143. command = "medic",
  144. max = 3,
  145. salary = GAMEMODE.Config.normalsalary,
  146. admin = 0,
  147. vote = false,
  148. hasLicense = false,
  149. medic = true,
  150. category = "Citizens",
  151. })
  152.  
  153. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  154. color = Color(20, 20, 255, 255),
  155. model = "models/player/combine_soldier_prisonguard.mdl",
  156. description = [[The Chief is the leader of the Civil Protection unit.
  157. Coordinate the police force to enforce law in the city.
  158. Hit a player with arrest baton to put them in jail.
  159. Bash a player with a stunstick and they may learn to obey the law.
  160. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  161. Type /wanted <name> to alert the public to the presence of a criminal.
  162. Type /jailpos to set the Jail Position]],
  163. weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
  164. command = "chief",
  165. max = 1,
  166. salary = GAMEMODE.Config.normalsalary * 1.67,
  167. admin = 0,
  168. vote = false,
  169. hasLicense = true,
  170. chief = true,
  171. NeedToChangeFrom = TEAM_POLICE,
  172. ammo = {
  173. ["pistol"] = 60,
  174. },
  175. category = "Civil Protection",
  176. })
  177.  
  178. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  179. color = Color(150, 20, 20, 255),
  180. model = "models/player/breen.mdl",
  181. description = [[The Mayor of the city creates laws to govern the city.
  182. If you are the mayor you may create and accept warrants.
  183. Type /wanted <name> to warrant a player.
  184. Type /jailpos to set the Jail Position.
  185. Type /lockdown initiate a lockdown of the city.
  186. Everyone must be inside during a lockdown.
  187. The cops patrol the area.
  188. /unlockdown to end a lockdown]],
  189. weapons = {},
  190. command = "mayor",
  191. max = 1,
  192. salary = GAMEMODE.Config.normalsalary * 1.89,
  193. admin = 0,
  194. vote = true,
  195. hasLicense = false,
  196. mayor = true,
  197. category = "Civil Protection",
  198. })
  199.  
  200. TEAM_HOBO = DarkRP.createJob("Hobo", {
  201. color = Color(80, 45, 0, 255),
  202. model = "models/player/corpse1.mdl",
  203. description = [[The lowest member of society. Everybody laughs at you.
  204. You have no home.
  205. Beg for your food and money
  206. Sing for everyone who passes to get money
  207. Make your own wooden home somewhere in a corner or outside someone else's door]],
  208. weapons = {"weapon_bugbait"},
  209. command = "hobo",
  210. max = 5,
  211. salary = 0,
  212. admin = 0,
  213. vote = false,
  214. hasLicense = false,
  215. candemote = false,
  216. hobo = true,
  217. category = "Citizens",
  218. })
  219.  
  220. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  221. TEAM_COOK = DarkRP.createJob("Cook", {
  222. color = Color(238, 99, 99, 255),
  223. model = "models/player/mossman.mdl",
  224. description = [[As a cook, it is your responsibility to feed the other members of your city.
  225. You can spawn a microwave and sell the food you make:
  226. /buymicrowave]],
  227. weapons = {},
  228. command = "cook",
  229. max = 2,
  230. salary = 45,
  231. admin = 0,
  232. vote = false,
  233. hasLicense = false,
  234. cook = true
  235. })
  236. end
  237.  
  238. -- Compatibility for when default teams are disabled
  239. TEAM_CITIZEN = TEAM_CITIZEN or -1
  240. TEAM_POLICE = TEAM_POLICE or -1
  241. TEAM_GANG = TEAM_GANG or -1
  242. TEAM_MOB = TEAM_MOB or -1
  243. TEAM_GUN = TEAM_GUN or -1
  244. TEAM_MEDIC = TEAM_MEDIC or -1
  245. TEAM_CHIEF = TEAM_CHIEF or -1
  246. TEAM_MAYOR = TEAM_MAYOR or -1
  247. TEAM_HOBO = TEAM_HOBO or -1
  248. TEAM_COOK = TEAM_COOK or -1
  249.  
  250. -- Door groups
  251. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  252. AddDoorGroup("Gundealer only", TEAM_GUN)
  253.  
  254.  
  255. -- Agendas
  256. DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  257. DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
  258.  
  259. -- Group chats
  260. DarkRP.createGroupChat(function(ply) return ply:isCP() end)
  261. DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
  262. DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
  263.  
  264. -- Initial team when first spawning
  265. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  266.  
  267. -- Teams that belong to Civil Protection
  268. GAMEMODE.CivilProtection = {
  269. [TEAM_POLICE] = true,
  270. [TEAM_CHIEF] = true,
  271. [TEAM_MAYOR] = true,
  272. }
  273.  
  274. -- Hitman team
  275. DarkRP.addHitmanTeam(TEAM_MOB)
  276.  
  277. -- Demote groups
  278. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  279. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
  280.  
  281. -- Default categories
  282. DarkRP.createCategory{
  283. name = "Citizens",
  284. categorises = "jobs",
  285. startExpanded = true,
  286. color = Color(0, 107, 0, 255),
  287. canSee = fp{fn.Id, true},
  288. sortOrder = 100,
  289. }
  290.  
  291. DarkRP.createCategory{
  292. name = "Civil Protection",
  293. categorises = "jobs",
  294. startExpanded = true,
  295. color = Color(25, 25, 170, 255),
  296. canSee = fp{fn.Id, true},
  297. sortOrder = 101,
  298. }
  299.  
  300. DarkRP.createCategory{
  301. name = "Gangsters",
  302. categorises = "jobs",
  303. startExpanded = true,
  304. color = Color(75, 75, 75, 255),
  305. canSee = fp{fn.Id, true},
  306. sortOrder = 101,
  307. }
  308.  
  309. DarkRP.createCategory{
  310. name = "Other",
  311. categorises = "jobs",
  312. startExpanded = true,
  313. color = Color(0, 107, 0, 255),
  314. canSee = fp{fn.Id, true},
  315. sortOrder = 255,
  316. }
  317.  
  318. TEAM_MAGICAL = DarkRP.createJob("Mahou Shoujo", {
  319. color = Color(195, 39, 39, 255),
  320. model = {"models/jazzmcfly/magica/kyouko_mg.mdl", "models/jazzmcfly/magica/homura_mg.mdl", "models/jazzmcfly/magica/madoka_mg.mdl", "models/jazzmcfly/magica/mami_mg.mdl", "models/jazzmcfly/magica/sayaka_mg.mdl"},
  321. description = [[chaoskiller3001's custom class.]],
  322. weapons = {"prokeypadcracker", "huntweb", "m9k_barret_m82", "csgo_butterfly_crimsonwebs", "m9k_ak74", "m9k_f2000", "m9k_fg42", "m9k_glock", "pro_lockpick", "weapon_fists", "weapon_lightsaber" },
  323. command = "Mahou",
  324. max = 1,
  325. salary = 100,
  326. admin = 0,
  327. vote = false,
  328. hasLicense = true,
  329. candemote = true,
  330. -- CustomCheck
  331. medic = false,
  332. chief = false,
  333. mayor = false,
  334. hobo = false,
  335. cook = false,
  336. category = "Magical Girl",
  337. customCheck =function(ply),
  338. return ply:SteamID()=="STEAM_0:0:100829789",
  339. or ply:SteamID()=="ADD",
  340. end
  341. })
  342.  
  343.  
  344.  
  345.  
  346. --[[---------------------------------------------------------------------------
  347. Define which team joining players spawn into and what team you change to if demoted
  348. ---------------------------------------------------------------------------]]
  349. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  350.  
  351.  
  352. --[[---------------------------------------------------------------------------
  353. Define which teams belong to civil protection
  354. Civil protection can set warrants, make people wanted and do some other police related things
  355. ---------------------------------------------------------------------------]]
  356. GAMEMODE.CivilProtection = {
  357. [TEAM_POLICE] = true,
  358. [TEAM_CHIEF] = true,
  359. [TEAM_MAYOR] = true,
  360. }
  361.  
  362. --[[---------------------------------------------------------------------------
  363. Jobs that are hitmen (enables the hitman menu)
  364. ---------------------------------------------------------------------------]]
  365. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement