Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 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. DarkRP.createJob("Marine", {
  19. color = Color(255, 0, 0, 255),
  20. model = {"models/player/usmc1player.mdl"},
  21. description = [[The marines]],
  22. weapons = {"fas2_m4a1", "fas2_p226", "fas2_m67"},
  23. command = "marinesoldier",
  24. max = 10,
  25. salary = 200,
  26. admin = 0,
  27. vote = false,
  28. hasLicense = true,
  29. candemote = false,
  30. category = "Marines",
  31. ammo = {
  32. ["fas2_ammo_556x45"] = 500,
  33. ["fas2_ammo_357sig"] = 500
  34. },
  35. PlayerSpawn = function(ply)
  36. ply:SetMaxHealth(100)
  37. ply:SetHealth(100)
  38. ply:SetArmor(10)
  39. end,
  40. customCheck = function(ply) return CLIENT or
  41. table.HasValue({}, ply:Team())
  42. end,
  43. CustomCheckFailMsg = "",
  44. })
  45.  
  46. DarkRP.createJob("Marine Medic", {
  47. color = Color(255, 0, 0, 255),
  48. model = {"models/player/usmc_goggle3npc.mdl"},
  49. description = [[The marine's medic]],
  50. weapons = {"fas2_m4a1", "fas2_p226", "fas2_ifak"},
  51. command = "marinemedic",
  52. max = 0,
  53. salary = 250,
  54. admin = 0,
  55. vote = false,
  56. hasLicense = true,
  57. candemote = false,
  58. category = "Marines",
  59. ammo = {
  60. ["fas2_ammo_556x45"] = 500,
  61. ["fas2_ammo_357sig"] = 500,
  62. ["fas2_ammo_medical"] = 50
  63. },
  64. PlayerSpawn = function(ply)
  65. ply:SetMaxHealth(100)
  66. ply:SetHealth(100)
  67. ply:SetArmor(50)
  68. end,
  69. customCheck = function(ply) return CLIENT or
  70. table.HasValue({}, ply:Team())
  71. end,
  72. CustomCheckFailMsg = "",
  73. })
  74.  
  75. DarkRP.createJob("Marine Sniper", {
  76. color = Color(255, 0, 0, 255),
  77. model = {"models/mw2/skin_09/mw2_soldier_06.mdl"},
  78. description = [[The marine's sniper]],
  79. weapons = {"fas2_deagle", "fas2_m82", "fas2_g36c"},
  80. command = "marinesniper",
  81. max = 2,
  82. salary = 300,
  83. admin = 0,
  84. vote = false,
  85. hasLicense = true,
  86. candemote = false,
  87. category = "Marines",
  88. ammo = {
  89. ["fas2_ammo_50bmg"] = 500,
  90. ["fas2_ammo_50ae"] = 500,
  91. ["fas2_ammo_556x45"] = 500
  92. },
  93. PlayerSpawn = function(ply)
  94. ply:SetMaxHealth(100)
  95. ply:SetHealth(100)
  96. ply:SetArmor(55)
  97. end,
  98. customCheck = function(ply) return CLIENT or
  99.  
  100. end,
  101. CustomCheckFailMsg = "",
  102. })
  103.  
  104. DarkRP.createJob("Marine Heavy", {
  105. color = Color(255, 0, 0, 255),
  106. model = {"models/player/usmc_auto3player.mdl"},
  107. description = [[The marine's heavy]],
  108. weapons = {"fas2_deagle", "fas2_m79", "fas2_m3s90", "fas2_m67", "fas2_m60e3"},
  109. command = "marineheavy",
  110. max = 2,
  111. salary = 300,
  112. admin = 0,
  113. vote = false,
  114. hasLicense = true,
  115. candemote = false,
  116. category = "Marines",
  117. ammo = {
  118. ["fas2_ammo_50ae"] = 500,
  119. ["fas2_ammo_12gauge"] = 500,
  120. ["fas2_ammo_40mm"] = 5,
  121. ["fas2_ammo_m67"] = 5,
  122. ["fas2_ammo_762x51"] = 500
  123. },
  124. PlayerSpawn = function(ply)
  125. ply:SetMaxHealth(100)
  126. ply:SetHealth(100)
  127. ply:SetArmor(55)
  128. end,
  129. customCheck = function(ply) return CLIENT or
  130. table.HasValue({}, ply:Team())
  131. end,
  132. CustomCheckFailMsg = "",
  133. })
  134.  
  135. DarkRP.createJob("Marine Officer", {
  136. color = Color(255, 0, 0, 255),
  137. model = {"models/player/spfrc_gogglesplayer.mdl"},
  138. description = [[The marine's Officer]],
  139. weapons = {"fas2_deagle", "fas2_m79", "fas2_m3s90", "fas2_m67", "fas2_m60e3", "fas2_ifak"},
  140. command = "marineofficer",
  141. max = 2,
  142. salary = 1000,
  143. admin = 0,
  144. vote = false,
  145. hasLicense = true,
  146. candemote = false,
  147. category = "Marines",
  148. ammo = {
  149. ["fas2_ammo_50ae"] = 500,
  150. ["fas2_ammo_12gauge"] = 500,
  151. ["fas2_ammo_40mm"] = 5,
  152. ["fas2_ammo_m67"] = 5,
  153. ["fas2_ammo_762x51"] = 500,
  154. ["fas2_ammo_medical"] = 10
  155. },
  156. PlayerSpawn = function(ply)
  157. ply:SetMaxHealth(100)
  158. ply:SetHealth(100)
  159. ply:SetArmor(100)
  160. end,
  161. customCheck = function(ply) return CLIENT or
  162. table.HasValue({}, ply:Team())
  163. end,
  164. CustomCheckFailMsg = "",
  165. })
  166.  
  167. DarkRP.createJob("Army Infantry", {
  168. color = Color(75, 125, 26, 255),
  169. model = {"models/codmw2/codmw2h.mdl"},
  170. description = [[Basic Unit of the US Army.]],
  171. weapons = {"fas2_glock20", "fas2_m16a2"},
  172. command = "armysoldier",
  173. max = 0,
  174. salary = 100,
  175. admin = 0,
  176. vote = false,
  177. hasLicense = true,
  178. candemote = false,
  179. category = "Army",
  180. ammo = {
  181. ["rifle"] = 500
  182. },
  183. PlayerSpawn = function(ply)
  184. ply:SetMaxHealth(100)
  185. ply:SetHealth(100)
  186. end
  187. })
  188. DarkRP.createJob("Army Medic", {
  189. color = Color(75, 125, 26, 255),
  190. model = {"models/codmw2/codmw2he.mdl"},
  191. description = [[Medical Unit of the US Army.]],
  192. weapons = {"fas2_glock20", "fas2_m16a2", "fas2_ifak"},
  193. command = "armymedic",
  194. max = 0,
  195. salary = 116,
  196. admin = 0,
  197. vote = false,
  198. hasLicense = true,
  199. candemote = false,
  200. category = "Army",
  201. ammo = {
  202. ["fas2_ammo_556x45"] = 500,
  203. ["fas2_ammo_10x25"] = 0,
  204. ["fas2_ammo_bandages"] = 0,
  205. ["fas2_ammo_hemostats"] = 0,
  206. ["fas2_ammo_medical"] = 0,
  207. ["fas2_ammo_quikclots"] = 0
  208. },
  209. PlayerSpawn = function(ply)
  210. ply:SetMaxHealth(100)
  211. ply:SetHealth(100)
  212. ply:SetArmor(10)
  213. end
  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. Define which teams belong to civil protection
  221. Civil protection can set warrants, make people wanted and do some other police related things
  222. ---------------------------------------------------------------------------]]
  223. GAMEMODE.CivilProtection = {
  224. [TEAM_POLICE] = false,
  225. [TEAM_CHIEF] = false,
  226. [TEAM_MAYOR] = false,
  227. }
  228. --[[---------------------------------------------------------------------------
  229. Jobs that are hitmen (enables the hitman menu)
  230. ---------------------------------------------------------------------------]]
  231. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement