Advertisement
Guest User

lua

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.72 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_CITIZEN = DarkRP.createJob("Citizen", {
  22. color = Color(20, 150, 20, 255),
  23. model = {
  24. "models/player/Group01/Female_01.mdl",
  25. "models/player/Group01/Female_02.mdl",
  26. "models/player/Group01/Female_03.mdl",
  27. "models/player/Group01/Female_04.mdl",
  28. "models/player/Group01/Female_06.mdl",
  29. "models/player/group01/male_01.mdl",
  30. "models/player/Group01/Male_02.mdl",
  31. "models/player/Group01/male_03.mdl",
  32. "models/player/Group01/Male_04.mdl",
  33. "models/player/Group01/Male_05.mdl",
  34. "models/player/Group01/Male_06.mdl",
  35. "models/player/Group01/Male_07.mdl",
  36. "models/player/Group01/Male_08.mdl",
  37. "models/player/Group01/Male_09.mdl"
  38. },
  39. 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.]],
  40. weapons = {"weapon_arc_atmcard"},
  41. command = "citizen",
  42. max = 0,
  43. salary = GAMEMODE.Config.normalsalary,
  44. admin = 0,
  45. vote = false,
  46. hasLicense = false,
  47. candemote = false,
  48. category = "Citizens"
  49. })
  50.  
  51. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  52. color = Color(25, 25, 170, 255),
  53. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  54. description = [[The protector of every citizen that lives in the city.
  55. You have the power to arrest criminals and protect innocents.
  56. Hit a player with your arrest baton to put them in jail.
  57. Bash a player with a stunstick and they may learn to obey the law.
  58. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  59. The Battering Ram can also unfreeze frozen props (if enabled).
  60. Type /wanted <name> to alert the public to the presence of a criminal.]],
  61. weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "weapon_arc_atmcard"},
  62. command = "cp",
  63. max = 4,
  64. salary = GAMEMODE.Config.normalsalary * 1.45,
  65. admin = 0,
  66. vote = true,
  67. hasLicense = true,
  68. ammo = {
  69. ["pistol"] = 60,
  70. },
  71. category = "Civil Protection"
  72. })
  73.  
  74. TEAM_GANG = DarkRP.createJob("Gangster", {
  75. color = Color(75, 75, 75, 255),
  76. model = {
  77. "models/player/Group03/Female_01.mdl",
  78. "models/player/Group03/Female_02.mdl",
  79. "models/player/Group03/Female_03.mdl",
  80. "models/player/Group03/Female_04.mdl",
  81. "models/player/Group03/Female_06.mdl",
  82. "models/player/group03/male_01.mdl",
  83. "models/player/Group03/Male_02.mdl",
  84. "models/player/Group03/male_03.mdl",
  85. "models/player/Group03/Male_04.mdl",
  86. "models/player/Group03/Male_05.mdl",
  87. "models/player/Group03/Male_06.mdl",
  88. "models/player/Group03/Male_07.mdl",
  89. "models/player/Group03/Male_08.mdl",
  90. "models/player/Group03/Male_09.mdl"},
  91. description = [[The lowest person of crime.
  92. A gangster generally works for the Mobboss who runs the crime family.
  93. The Mob boss sets your agenda and you follow it or you might be punished.]],
  94. weapons = {"weapon_arc_atmcard"},
  95. command = "gangster",
  96. max = 3,
  97. salary = GAMEMODE.Config.normalsalary,
  98. admin = 0,
  99. vote = false,
  100. hasLicense = false,
  101. category = "Gangsters"
  102. })
  103.  
  104. TEAM_MOB = DarkRP.createJob("Mob boss", {
  105. color = Color(25, 25, 25, 255),
  106. model = "models/player/gman_high.mdl",
  107. description = [[The Mob boss is the boss of the criminals in the city.
  108. With his power he coordinates the gangsters and forms an efficient crime organization.
  109. He has the ability to break into houses by using a lockpick.
  110. The Mob boss posesses the ability to unarrest you.]],
  111. weapons = {"lockpick", "unarrest_stick", "weapon_arc_atmcard"},
  112. command = "mobboss",
  113. max = 1,
  114. salary = GAMEMODE.Config.normalsalary * 1.34,
  115. admin = 0,
  116. vote = false,
  117. hasLicense = false,
  118. category = "Gangsters"
  119. })
  120.  
  121. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  122. color = Color(255, 140, 0, 255),
  123. model = "models/player/monk.mdl",
  124. description = [[A Gun Dealer is the only person who can sell guns to other people.
  125. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  126. weapons = {"weapon_arc_atmcard"},
  127. command = "gundealer",
  128. max = 2,
  129. salary = GAMEMODE.Config.normalsalary,
  130. admin = 0,
  131. vote = false,
  132. hasLicense = false,
  133. category = "Citizens"
  134. })
  135.  
  136. TEAM_MEDIC = DarkRP.createJob("Medic", {
  137. color = Color(47, 79, 79, 255),
  138. model = "models/player/kleiner.mdl",
  139. description = [[With your medical knowledge you work to restore players to full health.
  140. Without a medic, people cannot be healed.
  141. Left click with the Medical Kit to heal other players.
  142. Right click with the Medical Kit to heal yourself.]],
  143. weapons = {"med_kit", "weapon_arc_atmcard"},
  144. command = "medic",
  145. max = 3,
  146. salary = GAMEMODE.Config.normalsalary,
  147. admin = 0,
  148. vote = false,
  149. hasLicense = false,
  150. medic = true,
  151. category = "Citizens"
  152. })
  153.  
  154. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  155. color = Color(20, 20, 255, 255),
  156. model = "models/player/combine_soldier_prisonguard.mdl",
  157. description = [[The Chief is the leader of the Civil Protection unit.
  158. Coordinate the police force to enforce law in the city.
  159. Hit a player with arrest baton to put them in jail.
  160. Bash a player with a stunstick and they may learn to obey the law.
  161. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  162. Type /wanted <name> to alert the public to the presence of a criminal.
  163. Type /jailpos to set the Jail Position]],
  164. weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker", "weapon_arc_atmcard"},
  165. command = "chief",
  166. max = 1,
  167. salary = GAMEMODE.Config.normalsalary * 1.67,
  168. admin = 0,
  169. vote = false,
  170. hasLicense = true,
  171. chief = true,
  172. NeedToChangeFrom = TEAM_POLICE,
  173. ammo = {
  174. ["pistol"] = 60,
  175. },
  176. category = "Civil Protection"
  177. })
  178.  
  179. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  180. color = Color(150, 20, 20, 255),
  181. model = "models/player/breen.mdl",
  182. description = [[The Mayor of the city creates laws to govern the city.
  183. If you are the mayor you may create and accept warrants.
  184. Type /wanted <name> to warrant a player.
  185. Type /jailpos to set the Jail Position.
  186. Type /lockdown initiate a lockdown of the city.
  187. Everyone must be inside during a lockdown.
  188. The cops patrol the area.
  189. /unlockdown to end a lockdown]],
  190. weapons = {"weapon_arc_atmcard", "cw_deagle"},
  191. command = "mayor",
  192. max = 1,
  193. salary = GAMEMODE.Config.normalsalary * 1.89,
  194. admin = 0,
  195. vote = true,
  196. hasLicense = false,
  197. mayor = true,
  198. category = "Civil Protection"
  199. })
  200.  
  201. TEAM_HOBO = DarkRP.createJob("Hobo", {
  202. color = Color(80, 45, 0, 255),
  203. model = "models/player/corpse1.mdl",
  204. description = [[The lowest member of society. Everybody laughs at you.
  205. You have no home.
  206. Beg for your food and money
  207. Sing for everyone who passes to get money
  208. Make your own wooden home somewhere in a corner or outside someone else's door]],
  209. weapons = {"weapon_bugbait"},
  210. command = "hobo",
  211. max = 5,
  212. salary = 0,
  213. admin = 0,
  214. vote = false,
  215. hasLicense = false,
  216. candemote = false,
  217. hobo = true,
  218. category = "Citizens"
  219. })
  220.  
  221. TEAM_SADMIN = DarkRP.createJob("S-Admin On Duty", {
  222. color = Color(170, 0, 0, 255),
  223. model = "models/player/combine_super_soldier.mdl",
  224. description = [[Respect Players, dont be a dick.]],
  225. weapons = {"arrest_stick", "unarrest_stick", "cw_ak74", "weapon_arc_atmcard"},
  226. command = "sadminonduty",
  227. max = 0,
  228. salary = 100,
  229. admin = 2,
  230. vote = false,
  231. hasLicense = false,
  232.  
  233. })
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240. --[[---------------------------------------------------------------------------
  241. Define which team joining players spawn into and what team you change to if demoted
  242. ---------------------------------------------------------------------------]]
  243. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  244.  
  245.  
  246. --[[---------------------------------------------------------------------------
  247. Define which teams belong to civil protection
  248. Civil protection can set warrants, make people wanted and do some other police related things
  249. ---------------------------------------------------------------------------]]
  250. GAMEMODE.CivilProtection = {
  251. [TEAM_POLICE] = true,
  252. [TEAM_CHIEF] = true,
  253. [TEAM_MAYOR] = true,
  254. }
  255.  
  256. --[[---------------------------------------------------------------------------
  257. Jobs that are hitmen (enables the hitman menu)
  258. ---------------------------------------------------------------------------]]
  259. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement