Jaydenms

jobs.lua

May 1st, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4. This file contains your custom jobs.
  5. This file should also contain jobs from DarkRP that you edited.
  6.  
  7. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  8. Once you've done that, copy and paste the job to this file and edit it.
  9.  
  10. The default jobs can be found here:
  11. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  12.  
  13. For examples and explanation please visit this wiki page:
  14. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  15.  
  16. Add your custom jobs under the following line:
  17. ---------------------------------------------------------------------------]]
  18. TEAM_SWAT = DarkRP.createJob("SWAT", {
  19. color = Color(0, 25, 255, 255),
  20. model = {
  21. "models/player/bfh_enforcer.mdl",
  22. "models/player/bfh_mechanic.mdl",
  23. "models/player/bfh_operator.mdl",
  24. "models/player/bfh_pro.mdl"
  25. },
  26. description = [[SWAT Officer]],
  27. weapons = {"fas2_mp5sd6", "carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
  28. command = "police",
  29. max = 3,
  30. salary = 350,
  31. admin = 0,
  32. vote = true,
  33. sortOrder = 3,
  34. hasLicense = true,
  35. category = "Civil Protection",
  36. PlayerSpawn = function(ply),
  37. ply:SetMaxHealth(100)
  38. ply:SetHealth(100)
  39. ply:SetArmor(100)
  40. end
  41. })
  42.  
  43. TEAM_POLICE = DarkRP.createJob("Police", {
  44. color = Color(255, 0, 0, 255),
  45. model = {
  46. "models/taggart/police02/male_09.mdl",
  47. "models/taggart/police02/male_07.mdl",
  48. "models/taggart/police02/male_01.mdl",
  49. "models/taggart/police02/male_01.mdl"
  50. },
  51. command = "police_officer",
  52. description = [[Police Officer]],
  53. weapons = {"carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
  54. max = 5,
  55. salary = 250,
  56. admin = 0,
  57. vote = false,
  58. sortOrder = 1,
  59. hasLicense = true,
  60. category = "Civil Protection",
  61. PlayerSpawn = function(ply),
  62. ply:SetMaxHealth(100)
  63. ply:SetHealth(100)
  64. ply:SetArmor(50)
  65. end
  66. })
  67.  
  68. TEAM_EMSMEDIC = DarkRP.createJob("EMS", {
  69. color = Color(255, 0, 0, 255),
  70. model = {
  71. "models/taggart/police02/male_09.mdl",
  72. "models/taggart/police02/male_07.mdl",
  73. "models/taggart/police02/male_01.mdl",
  74. "models/taggart/police02/male_01.mdl"
  75. },
  76. command = "ems_medic",
  77. description = [[EMS Medic]],
  78. weapons = {"carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
  79. max = 5,
  80. salary = 250,
  81. admin = 0,
  82. vote = false,
  83. sortOrder = 10,
  84. hasLicense = false,
  85. category = "Civil Protection",
  86. PlayerSpawn = function(ply),
  87. ply:SetMaxHealth(100)
  88. ply:SetHealth(100)
  89. ply:SetArmor(0)
  90. end
  91. })
  92.  
  93. TEAM_FIREFIGHTER = DarkRP.createJob("Firefighter", {
  94. color = Color(255, 76, 0, 255),
  95. model = {"models/player/portal/male_06_fireman.mdl"},
  96. command = "firefighter",
  97. description = [[Firefighter]],
  98. weapons = {"carkeys", "door_ram", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool", "weapon_extinguisher_infinite"},
  99. max = 5,
  100. salary = 250,
  101. admin = 0,
  102. vote = false,
  103. sortOrder = 11,
  104. hasLicense = false,
  105. category = "Civil Protection",
  106. PlayerSpawn = function(ply),
  107. ply:SetMaxHealth(100)
  108. ply:SetHealth(100)
  109. ply:SetArmor(0)
  110. end
  111. })
  112.  
  113. TEAM_MECHANIC = DarkRP.createJob("Mechanic", {
  114. color = Color(255, 76, 0, 255),
  115. model = {
  116. "models/player/group01/male_04.mdl",
  117. "models/player/group01/female_06.mdl"
  118. },
  119. description = [[Mechanic, fix things and tow! ]],
  120. weapons = {"carkeys", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool", "weapon_simrepair"},
  121. command = "mechanic",
  122. max = 3,
  123. salary = 150,
  124. admin = 0,
  125. vote = false,
  126. hasLicense = false,
  127. candemote = true,
  128. category = "Citizens",
  129. NeedToChangeFrom = TEAM_CITIZEN,
  130. PlayerSpawn = function(ply),
  131. ply:SetMaxHealth(100)
  132. ply:SetHealth(100)
  133. ply:SetArmor(0)
  134. end
  135. })
  136.  
  137. --[[---------------------------------------------------------------------------
  138. Define which team joining players spawn into and what team you change to if demoted
  139. ---------------------------------------------------------------------------]]
  140. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  141. --[[---------------------------------------------------------------------------
  142. Define which teams belong to civil protection
  143. Civil protection can set warrants, make people wanted and do some other police related things
  144. ---------------------------------------------------------------------------]]
  145. GAMEMODE.CivilProtection = {
  146. [TEAM_POLICE] = true,
  147. [TEAM_CHIEF] = true,
  148. [TEAM_MAYOR] = true,
  149. [TEAM_POLICEOFFICER] = true,
  150. [TEAM_EMSMEDIC] = true,
  151. [TEAM_FIREFIGHTER] = true,
  152. }
  153. --[[---------------------------------------------------------------------------
  154. Jobs that are hitmen (enables the hitman menu)
  155. ---------------------------------------------------------------------------]]
  156. DarkRP.addHitmanTeam(TEAM_MOB)
Add Comment
Please, Sign In to add comment