Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.75 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_CIVILIAN = DarkRP.createJob("Civilian", {
  19.  
  20.    color = Color(0, 0, 0, 255),
  21.  
  22.    model = "models/player/clanof06/male_04.mdl",
  23.  
  24.    description = [[The world is your oyster, it's up to you to become something.]],
  25.  
  26.   weapons = {"weapon_fishingrod"},
  27.  
  28.   command = "civ",
  29.  
  30.   max = 0,
  31.  
  32.   salary = 10,
  33.  
  34.   admin = 0,
  35.  
  36.   vote = false,
  37.  
  38.   hasLicense = false,
  39.  
  40.   category = "Citizens",
  41.  
  42. })
  43.  
  44. TEAM_POFFICER = DarkRP.createJob("Probationary Police Officer", {
  45.  
  46.   color = Color(25, 25, 170, 255),
  47.  
  48.   model = {"models/taggart/police01/male_01.mdl"},
  49.  
  50.   description = [[To protect and serve.]],
  51.  
  52.   weapons = {"fas2_glock20", "weaponchecker", "weapon_r_handcuffs"},
  53.  
  54.   command = "pofficer",
  55.  
  56.   max = 4,
  57.  
  58.   salary = 45,
  59.  
  60.   admin = 0,
  61.  
  62.   vote = false,
  63.  
  64.   hasLicense = true,
  65.  
  66.  category = "Police Department",
  67. })
  68.  
  69. TEAM_POFFICER = DarkRP.createJob("Police Officer", {
  70.  
  71.   color = Color(25, 25, 170, 255),
  72.  
  73.   model = {"models/taggart/police01/male_01.mdl"},
  74.  
  75.   description = [[To protect and serve.]],
  76.  
  77.   weapons = {"fas2_glock20", "weaponchecker", "weapon_r_handcuffs"},
  78.  
  79.   command = "officer",
  80.  
  81.   max = 4,
  82.  
  83.   salary = 45,
  84.  
  85.   admin = 0,
  86.  
  87.   vote = false,
  88.  
  89.   hasLicense = true,
  90.  
  91.   category = "Police Department",
  92. })
  93.  
  94. TEAM_SOFFICER = DarkRP.createJob("Police Supervisor", {
  95.  
  96.   color = Color(25, 25, 170, 255),
  97.  
  98.   model = {"models/taggart/police01/male_02.mdl"},
  99.  
  100.   description = [[To protect and serve.]],
  101.  
  102.   weapons = {"fas2_glock20", "weaponchecker", "weapon_r_handcuffs", "speed_gun"},
  103.  
  104.   command = "sofficer",
  105.  
  106.   max = 4,
  107.  
  108.   salary = 45,
  109.  
  110.   admin = 0,
  111.  
  112.   vote = false,
  113.  
  114.   hasLicense = true,
  115.  
  116.   category = "Police Department",
  117.  
  118. })
  119.  
  120. TEAM_PARAMEDIC = DarkRP.createJob("Paramedic", {
  121.  
  122.   color = Color(25, 232, 239),
  123.  
  124.   model = {"models/player/kerry/medic/medic_01.mdl"},
  125.  
  126.   description = [[To save lives.]],
  127.  
  128.   weapons = {"weapon_gdefib", "weapon_bandages"},
  129.  
  130.   command = "paramedic",
  131.  
  132.   max = 4,
  133.  
  134.   salary = 100,
  135.  
  136.   admin = 0,
  137.  
  138.   vote = false,
  139.  
  140.   hasLicense = false,
  141.  
  142.   category = "Emergency Department",
  143.  
  144. })
  145.  
  146. TEAM_SWATC = DarkRP.createJob("S.W.A.T Commander", {
  147.  
  148.   color = Color(4, 26, 114),
  149.  
  150.   model = {"models/piket_playermodel/piket_playermodel.mdl"},
  151.  
  152.   description = [[To protect and serve.]],
  153.  
  154.   weapons = {"fas2_glock20", "fas2_mp5a5", "weapon_r_handcuffs"},
  155.  
  156.   command = "swatc",
  157.  
  158.   max = 1,
  159.  
  160.   salary = 145,
  161.  
  162.   admin = 0,
  163.  
  164.   vote = false,
  165.  
  166.   hasLicense = true,
  167.  
  168.   category = "Police Department",
  169.  
  170. })
  171.  
  172. TEAM_SWATO = DarkRP.createJob("S.W.A.T Officer", {
  173.  
  174.   color = Color(4, 26, 114),
  175.  
  176.   model = {"models/piket_playermodel/piket_playermodel.mdl"},
  177.  
  178.   description = [[To protect and serve.]],
  179.  
  180.   weapons = {"fas2_glock20", "fas2_mp5a5", "weapon_r_handcuffs"},
  181.  
  182.   command = "swato",
  183.  
  184.   max = 4,
  185.  
  186.   salary = 110,
  187.  
  188.   admin = 0,
  189.  
  190.   vote = false,
  191.  
  192.   hasLicense = true,
  193.  
  194.   category = "Police Department",
  195.  
  196. })
  197.  
  198. --[[---------------------------------------------------------------------------
  199. Define which team joining players spawn into and what team you change to if demoted
  200. ---------------------------------------------------------------------------]]
  201. GAMEMODE.DefaultTeam = TEAM_CIVILIAN
  202. --[[---------------------------------------------------------------------------
  203. Define which teams belong to civil protection
  204. Civil protection can set warrants, make people wanted and do some other police related things
  205. ---------------------------------------------------------------------------]]
  206. GAMEMODE.CivilProtection = {
  207.    [TEAM_OFFICER] = true,
  208.     [TEAM_POFFICER] = true,
  209.     [TEAM_SOFFICER] = true,
  210.    [TEAM_CHIEF] = false,
  211.    [TEAM_MAYOR] = false,
  212. }
  213. --[[---------------------------------------------------------------------------
  214. Jobs that are hitmen (enables the hitman menu)
  215. ---------------------------------------------------------------------------]]
  216. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement