Advertisement
Guest User

Untitled

a guest
Jul 29th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 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. Generated using: DarkRP | Job Generator
  22. https://csite.io/tools/gmod-darkrp-job
  23. --]]
  24. TEAM_M9KDEALER = DarkRP.createJob("M9K Gun Dealer"), {
  25. color = Color(255, 0, 0, 255),
  26. model = {"models/player/eli.mdl"},
  27. description = [[This is a special type of dealer that is an expert with the M9K weapons]],
  28. weapons = {"m9k_usp"},
  29. command = "m9kdealer",
  30. max = 1,
  31. salary = 375,
  32. admin = 0,
  33. vote = false,
  34. hasLicense = true,
  35. candemote = false,
  36. }
  37. ammo = {
  38. ["pistol"] = 75
  39. },
  40. PlayerSpawn = function(ply)
  41. ply:SetMaxHealth(100)
  42. ply:SetHealth(100)
  43. ply:SetArmor(46)
  44. end
  45. })
  46.  
  47. --[[
  48. Generated using: DarkRP | Job Generator
  49. https://csite.io/tools/gmod-darkrp-job
  50. --]]
  51. TEAM_MONEY = DarkRP.createJob("BETA MONEY MAN"), {
  52. color = Color(0, 255, 52, 255),
  53. model = {"models/player/gman_high.mdl"},
  54. description = [[This man is only for beta testers]],
  55. weapons = {},
  56. command = "moneyman",
  57. max = 3,
  58. salary = 15000,
  59. admin = 0,
  60. vote = false,
  61. hasLicense = false,
  62. candemote = false,
  63. })
  64.  
  65. --[[
  66. Generated using: DarkRP | Job Generator
  67. https://csite.io/tools/gmod-darkrp-job
  68. --]]
  69. TEAM_STAFF = DarkRP.createJob("Staff On Duty"), {
  70. color = Color(0, 74, 255, 255),
  71. model = {"models/player/combine_super_soldier.mdl"},
  72. description = [[Staff Role]],
  73. weapons = {},
  74. command = "staffonduty",
  75. max = 0,
  76. salary = 0,
  77. admin = 1,
  78. vote = false,
  79. hasLicense = false,
  80. candemote = false,
  81. customCheck = function(ply) return
  82. table.HasValue({"Mod", "superadmin", "Co-Owner", "Admin"}, ply:GetNWString("usergroup"))
  83. end,
  84. CustomCheckFailMsg = "This job is for staff only!",
  85. })
  86.  
  87. --[[
  88. Generated using: DarkRP | Job Generator
  89. https://csite.io/tools/gmod-darkrp-job
  90. --]]
  91. TEAM_POLICE = DarkRP.createJob("Police"), {
  92. color = Color(0, 74, 255, 255),
  93. model = {"models/dpfilms/metropolice/playermodels/pm_hl2concept.mdl"},
  94. description = [[Regular police that roams the streets of downtown]],
  95. weapons = {"m9k_colt1911", "door_ram", "arrest_stick", "unarrest_stick", "stunstick"},
  96. command = "police",
  97. max = 3,
  98. salary = 60,
  99. admin = 0,
  100. vote = false,
  101. hasLicense = true,
  102. candemote = true,
  103. })
  104.  
  105. --[[
  106. Generated using: DarkRP | Job Generator
  107. https://csite.io/tools/gmod-darkrp-job
  108. --]]
  109. TEAM_POLICEMEDIC = DarkRP.createJob("Police Medic"), {
  110. color = Color(0, 74, 255, 255),
  111. model = {"models/dpfilms/metropolice/playermodels/pm_civil_medic.mdl"},
  112. description = [[Regular police that roams the streets of downtown]],
  113. weapons = {"m9k_colt1911", "door_ram", "arrest_stick", "unarrest_stick", "stunstick", "med_kit"},
  114. command = "policemed",
  115. max = 3,
  116. salary = 65,
  117. admin = 0,
  118. vote = false,
  119. hasLicense = true,
  120. candemote = true,
  121. })
  122.  
  123. --[[
  124. Generated using: DarkRP | Job Generator
  125. https://csite.io/tools/gmod-darkrp-job
  126. --]]
  127. TEAM_SWAT = DarkRP.createJob("SWAT"), {
  128. color = Color(0, 74, 255, 255),
  129. model = {"models/dpfilms/metropolice/playermodels/pm_rtb_police.mdl"},
  130. description = [[A professionally trained member of the police force]],
  131. weapons = {"door_ram", "arrest_stick", "unarrest_stick", "stunstick", "m9k_honeybadger", "m9k_colt1911"},
  132. command = "swat",
  133. max = 2,
  134. salary = 175,
  135. admin = 0,
  136. vote = false,
  137. hasLicense = true,
  138. candemote = true,
  139. })
  140.  
  141. --[[
  142. Generated using: DarkRP | Job Generator
  143. https://csite.io/tools/gmod-darkrp-job
  144. --]]
  145. TEAM_POLICECHIEF = DarkRP.createJob("Police Chief"), {
  146. color = Color(0, 74, 255, 255),
  147. model = {"models/dpfilms/metropolice/playermodels/pm_hd_barney.mdl"},
  148. description = [[Leader of both the police force and the SWAT force of downtown]],
  149. weapons = {"door_ram", "arrest_stick", "unarrest_stick", "stunstick", "m9k_val", "m9k_deagle"},
  150. command = "policechief",
  151. max = 1,
  152. salary = 350,
  153. admin = 0,
  154. vote = true,
  155. hasLicense = true,
  156. candemote = true,
  157. category = "Civil Protection",
  158. chief = true,
  159. NeedToChangeFrom = TEAM_POLICE,
  160. ammo = {
  161. ["pistol"] = 75,
  162. ["buckshot"] = 75,
  163. ["smg1"] = 0,
  164. ["ar2"] = 0
  165. },
  166. PlayerSpawn = function(ply)
  167. ply:SetMaxHealth(175)
  168. ply:SetHealth(175)
  169. ply:SetArmor(100)
  170. end,
  171. PlayerDeath = function(ply, weapon, killer)
  172. ply:teamBan()
  173. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  174. DarkRP.notifyAll(0, 4, "The police chief has died and needs to be replaced.")
  175. end
  176. })
  177.  
  178.  
  179. --[[---------------------------------------------------------------------------
  180. Define which team joining players spawn into and what team you change to if demoted
  181. ---------------------------------------------------------------------------]]
  182. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  183.  
  184.  
  185. --[[---------------------------------------------------------------------------
  186. Define which teams belong to civil protection
  187. Civil protection can set warrants, make people wanted and do some other police related things
  188. ---------------------------------------------------------------------------]]
  189. GAMEMODE.CivilProtection = {
  190. [TEAM_POLICE] = true,
  191. [TEAM_CHIEF] = true,
  192. [TEAM_MAYOR] = true,
  193. }
  194.  
  195. --[[---------------------------------------------------------------------------
  196. Jobs that are hitmen (enables the hitman menu)
  197. ---------------------------------------------------------------------------]]
  198. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement