Advertisement
Guest User

Error

a guest
Aug 3rd, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 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_BARTENDER = DarkRP.createJob("Bartender", {
  22. color = Color(0, 0, 0, 255),
  23. model = "models/player/eli.mdl",
  24. description = [[You are a sell them drinks.]],
  25. weapons = {"tfa_colt1911", "weapon_medkit", "stunstick"}, -- You may wanna find a gm_pickpocket swep and add it here.
  26. command = "bartender",
  27. max = 1,
  28. salary = 125,
  29. admin = 0,
  30. vote = false,
  31. hasLicense = false,
  32. category = "Citizens",
  33. })
  34.  
  35. TEAM_THERAPISTS = DarkRP.createJob("Therapist", {
  36. color = Color(0, 0, 0, 255),
  37. model = "models/player/magnusson.mdl",
  38. description = [[You are a therapist, help people, go to their house for sessions to stop them from their problems.]],
  39. weapons = {"lockpick", "weapon_medkit", "stunstick"}, -- You may wanna find a gm_pickpocket swep and add it here.
  40. command = "therapist",
  41. max = 5,
  42. salary = 125,
  43. admin = 0,
  44. vote = false,
  45. hasLicense = false,
  46. category = "Citizens",
  47. })
  48.  
  49. TEAM_THIEF = DarkRP.createJob("Thief", {
  50. color = Color(0, 0, 0, 255),
  51. model = "models/player/robber.mdl",
  52. description = [[You are a thief, rob people, lockpick their house and steal their plants and illegal printers.]],
  53. weapons = {"lockpick", "gm_pickpocket", "tfa_ragingbull"}, -- You may wanna find a gm_pickpocket swep and add it here.
  54. command = "thief",
  55. max = 2,
  56. salary = 65,
  57. admin = 0,
  58. vote = false,
  59. hasLicense = false,
  60. category = "Criminals",
  61. })
  62.  
  63. TEAM_HITMAN = DarkRP.createJob("Assassin", {
  64. color = Color(0, 0, 0, 255),
  65. model = "models/heroes/windranger/windranger.mdl",
  66. description = [[You are a assassin take out who your hired to murder.]],
  67. weapons = {"lockpick", "gm_pickpocket", "tfa_barret_m82", "tfa_m249lmg"},
  68. command = "assassin",
  69. max = 2,
  70. salary = 6500,
  71. admin = 0,
  72. vote = false,
  73. hasLicense = false,
  74. category = "Donater",
  75. })
  76.  
  77. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  78. color = Color(0, 0, 0, 255),
  79. model = "models/player/sunabouzu.mdl",
  80. description = [[People hire you to take out other people,
  81. this job require you to be completely focussed.
  82. A single breath can make you loose a shot.]],
  83. weapons = {"tfa_m24"},
  84. command = "hitman",
  85. max = 1,
  86. salary = 65,
  87. admin = 0,
  88. vote = false,
  89. hasLicense = false,
  90. category = "Criminals",
  91. })
  92.  
  93. TEAM_SWAT = DarkRP.createJob("Swat", {
  94. color = Color(25, 25, 170, 255),
  95. model = {"models/player/swat.mdl"},
  96. description = [[The protector of every citizen that lives in the city.
  97. You have the power to arrest criminals and protect innocents.
  98. Hit a player with your arrest baton to put them in jail.
  99. Bash a player with a stunstick and they may learn to obey the law.
  100. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  101. The Battering Ram can also unfreeze frozen props (if enabled).
  102. Type /wanted <name> to alert the public to the presence of a criminal.]],
  103. weapons = {"weapon_cuff_police", "unarrest_stick", "tfa_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
  104. command = "Swat",
  105. max = 4,
  106. salary = 150,
  107. admin = 0,
  108. vote = true,
  109. hasLicense = true,
  110. help = {
  111. "Please don't abuse your job",
  112. "When you arrest someone they are auto transported to jail.",
  113. "They are auto let out of jail after some time",
  114. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  115. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
  116. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
  117. "Type /jailpos to set the jail position"
  118. },
  119. category = "Civil Protection",
  120. })
  121.  
  122. TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
  123. color = Color(170, 0, 0, 255),
  124. model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
  125. description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
  126. It's up to you to patrol and respond to admin calls.]],
  127. weapons = {},
  128. command = "aod",
  129. max = 0,
  130. salary = 0,
  131. admin = 0,
  132. vote = false,
  133. hasLicense = false,
  134. customCheck = function(ply) return ply:GetUserGroup() == "Superadmin" end,
  135. category = "Admin jobs",
  136. })
  137.  
  138. TEAM_MD = DarkRP.createJob("Mayors Daughter", {
  139. color = Color(255,100,100,255),
  140. model = "models/player/alyx.mdl",
  141. description = [[You are the mayors daughter, walk around with your dad
  142. just chill around. But be careful, you never know when somebody
  143. is waiting to kidnap you!]],
  144. weapons = {"tfa_colt1911", "weapon_cuff_shackles", "gm_pickpocket"},
  145. command = "mayorsdaughter",
  146. max = 1,
  147. salary = 800,
  148. admin = 0,
  149. vote = true,
  150. hasLicense = false,
  151. category = "Civil Protection",
  152. })
  153.  
  154. TEAM_GUARD = DarkRP.createJob("Guard", {
  155. color = Color(0,200,50,255),
  156. model = "models/player/barney.mdl",
  157. description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
  158. weapons = {"tfa_uzi"},
  159. command = "guard",
  160. max = 1,
  161. salary = 0,
  162. admin = 0,
  163. vote = false,
  164. hasLicense = true,
  165. category = "Citizens",
  166. })
  167.  
  168. TEAM_DRUGGY = DarkRP.createJob("Drug Dealer", {
  169. color = Color(51, 204, 255, 255),
  170. model = "models/player/aphaztech.mdl",
  171. description = [[You deal drugs to those in need.
  172. Be careful, may get arrested if caught in the act!]],
  173. weapons = {},
  174. command = "drug",
  175. max = 5,
  176. salary = 65,
  177. admin = 0,
  178. vote = false,
  179. hasLicense = false,
  180. category = "Criminals",
  181. })
  182.  
  183. TEAM_LAWYER = AddExtraTeam("Lawyer", {
  184. color = Color(100, 150, 200, 255),
  185. model = "models/player/hostage/hostage_04.mdl",
  186. description = [[As a lawyer you are responsible for fighting
  187. on your clints behalf this includes bailing him out of jail, and or
  188. pvp confrontation.]],
  189. weapons = {"unarrest_stick", "hl2_combo_fists"},
  190. command = "lawyer",
  191. max = 3,
  192. salary = 60,
  193. admin = 0,
  194. vote = true,
  195. hasLicense = false,
  196. category = "Citizens",
  197. })
  198.  
  199. TEAM_SS = AddExtraTeam("Secret Service", {
  200. color = Color(255, 10, 10, 255),
  201. model = "models/agent_47/agent_47.mdl",
  202. description = [[As a secret service agent, it is your job to make sure the
  203. mayor is safe under any Circumstances. But you are still under
  204. the authority of the police chief. ]],
  205. weapons = {"tfa_ragingbull", "hl2_combo_fists", "weapon_cuff_police", "policebadgewallet", "policebadge"},
  206. command = "secretservice",
  207. max = 2,
  208. salary = 50,
  209. admin = 0,
  210. vote = true,
  211. hasLicense = true,
  212. category = "Civil Protection",
  213. })
  214.  
  215. --[[---------------------------------------------------------------------------
  216. Define which team joining players spawn into and what team you change to if demoted
  217. ---------------------------------------------------------------------------]]
  218. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  219.  
  220.  
  221. --[[---------------------------------------------------------------------------
  222. Define which teams belong to civil protection
  223. Civil protection can set warrants, make people wanted and do some other police related things
  224. ---------------------------------------------------------------------------]]
  225. GAMEMODE.CivilProtection = {
  226. [TEAM_POLICE] = true,
  227. [TEAM_CHIEF] = true,
  228. [TEAM_MAYOR] = true,
  229. [TEAM_MD] = true,
  230. [TEAM_SS] = true,
  231. [TEAM_SWAT] = true,
  232. [TEAM_LAWYER] = true,
  233. }
  234.  
  235. --[[---------------------------------------------------------------------------
  236. Jobs that are hitmen (enables the hitman menu)
  237. ---------------------------------------------------------------------------]]
  238. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement