Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.49 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. TEAM_ARMED = DarkRP.createJob("Armed police", {
  21.    color = Color(0, 0, 0, 255),
  22.    model = {"models/player/pmc_4/pmc__01.mdl", "models/player/pmc_4/pmc__02.mdl", "models/player/pmc_4/pmc__03.mdl", "models/player/pmc_4/pmc__04.mdl", "models/player/pmc_4/pmc__05.mdl", "models/player/pmc_4/pmc__6.mdl", "models/player/pmc_4/pmc__07.mdl", "models/player/pmc_4/pmc__08.mdl", "models/player/pmc_4/pmc__09.mdl", "models/player/pmc_4/pmc__10.mdl", "models/player/pmc_4/pmc__11.mdl", "models/player/pmc_4/pmc__12.mdl", "models/player/pmc_4/pmc__13.mdl", "models/player/pmc_4/pmc__14.mdl"},
  23.    description = [[Armed police team, can raid.]],
  24.    weapons = {"weapon_on_glock17", "weapon_on_baton", "weapon_on_mp5", "weapon_on_shotgun_xm"},
  25.    command = "armed",
  26.    max = 5,
  27.    salary = 150,
  28.    admin = 0,
  29.    vote = true,
  30.    hasLicense = true,
  31.     NeedToChangeFrom = TEAM_POLICE,
  32.     ammo = {
  33.         ["pistol"] = 60,
  34.     },
  35. })
  36.  
  37. TEAM_FBI = DarkRP.createJob("FBI", {
  38.     color = Color(25, 25, 170, 255),
  39.     model = {"models/fbi_pack/fbi_01.mdl", "models/fbi_pack/fbi_02.mdl", "models/fbi_pack/fbi_03.mdl", "models/fbi_pack/fbi_04.mdl", "models/fbi_pack/fbi_05.mdl", "models/fbi_pack/fbi_06.mdl", "models/fbi_pack/fbi_07.mdl", "models/fbi_pack/fbi_08.mdll", "models/fbi_pack/fbi_09.mdl"},
  40.     description = [[Federal Bureau of Investigation. Hunt down criminals.]],
  41.     weapons = {"m9k_usp", "m9k_m416", "door_ram", "weaponchecker", "weapon_arc_atmcard", "handcuffs", "riotshield"},
  42.     command = "fbi",
  43.     max = 10,
  44.     salary = 120,
  45.     admin = 0,
  46.     vote = false,
  47.     customCheck = function(ply) return table.HasValue({"whitelist1", "superadmin"}, ply:GetNWString("usergroup")) end,
  48.     CustomCheckFailMsg = "You aren't on the Emergency services white-list, see the RP website to apply for this faction."
  49. })
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. /*---------------------------------------------------------------------------
  62. Define which team joining players spawn into and what team you change to if demoted
  63. ---------------------------------------------------------------------------*/
  64. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  65.  
  66.  
  67. /*---------------------------------------------------------------------------
  68. Define which teams belong to civil protection
  69. Civil protection can set warrants, make people wanted and do some other police related things
  70. ---------------------------------------------------------------------------*/
  71. GAMEMODE.CivilProtection = {
  72.     [TEAM_POLICE] = true,
  73.     [TEAM_CHIEF] = true,
  74.     [TEAM_MAYOR] = true,
  75.     [TEAM_CO19] = false,
  76. }
  77.  
  78. /*---------------------------------------------------------------------------
  79. Jobs that are hitmen (enables the hitman menu)
  80. ---------------------------------------------------------------------------*/
  81. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement