Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 12.05 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. TEAM_SKELETON = DarkRP.createJob("Skeleton", {
  22.    color = Color(100, 0, 0, 255),
  23.    model = "models/player/skeleton.mdl",
  24.    description = [[Kill everyone.]],
  25.    weapons = {"m9k_knife"},
  26.    command = "Skeleton",
  27.    max = 1,
  28.    salary = 90,
  29.    admin = 0,
  30.    vote = false,
  31.    hasLicense = false
  32.  
  33. })
  34.  
  35. TEAM_POLICE = DarkRP.createJob("Police Officer", { 
  36.     color = Color(25, 25, 170, 255),
  37.     model = {
  38.     "models/fbi_pack/fbi_01.mdl",
  39.     "models/fbi_pack/fbi_02.mdl",
  40.     "models/fbi_pack/fbi_03.mdl",
  41.     "models/fbi_pack/fbi_04.mdl",
  42.     "models/fbi_pack/fbi_05.mdl",
  43.     "models/fbi_pack/fbi_06.mdl",
  44.     "models/fbi_pack/fbi_07.mdl",
  45.     "models/fbi_pack/fbi_08.mdl",
  46.     "models/fbi_pack/fbi_09.mdl"},
  47.     description = [[The protector of every citizen that lives in the city.
  48.         You have the power to arrest criminals and protect innocents.
  49.         Hit a player with your arrest baton to put them in jail.
  50.         Bash a player with a stunstick and they may learn to obey the law.
  51.         The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  52.         The Battering Ram can also unfreeze frozen props (if enabled).
  53.         Type /wanted <name> to alert the public to the presence of a criminal.]],
  54.     weapons = {"arrest_stick","unarrest_stick","m9k_usp","stunstick","door_ram","weaponchecker"},
  55.     command = "police",
  56.     max = 4,
  57.     salary = GAMEMODE.Config.normalsalary * 1.45,
  58.     admin = 0,
  59.     vote = true,
  60.     hasLicense = true,
  61.     ammo = {["pistol"] = 60,}
  62.    
  63. })
  64.  
  65. TEAM_CHIEF = DarkRP.createJob("Police Chief", {
  66.     color = Color(50, 50, 255, 255),
  67.     model = "models/player/elispolice/police.mdl",
  68.     description = [[The Chief is the leader of the Police Department.
  69.         Coordinate the police force to enforce law in the city.
  70.         Hit a player with arrest baton to put them in jail.
  71.         Bash a player with a stunstick and they may learn to obey the law.
  72.         The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  73.         Type /wanted <name> to alert the public to the presence of a criminal.
  74.         Type /jailpos to set the Jail Position]],
  75.     weapons = {"arrest_stick","unarrest_stick","m9k_coltpython","stunstick","door_ram","weaponchecker"},
  76.     command = "chief",
  77.     max = 1,
  78.     salary = GAMEMODE.Config.normalsalary * 1.67,
  79.     admin = 0,
  80.     vote = true,
  81.     hasLicense = true,
  82.     chief = true,
  83.     NeedToChangeFrom = TEAM_POLICE,
  84.     ammo = {
  85.         ["pistol"] = 60,
  86.     }
  87. })
  88.  
  89. TEAM_SWAT = DarkRP.createJob("SWAT", {
  90.     color = Color(0, 0, 255, 255),
  91.     model = {
  92.     "models/player/swat.mdl",
  93.     "models/player/urban.mdl",
  94.     "models/player/gasmask.mdl"},
  95.     description = [[Donators only!]],
  96.         weapons = {"arrest_stick","unarrest_stick","m9k_hk45","m9k_m4a1","stunstick","door_ram","weaponchecker"},
  97.     command = "Swat",
  98.     max = 2,
  99.     salary = 55,
  100.     admin = 0,
  101.     vote = true,
  102.         hasLicense = true,
  103.        
  104. })
  105.  
  106. TEAM_SWATC = DarkRP.createJob("SWAT Commander", {
  107.     color = Color(0, 0, 200, 255),
  108.     model = "models/player/riot.mdl",
  109.     description = [[DONATOR ONLY!]],
  110.    weapons = {"arrest_stick","unarrest_stick","m9k_model500","m9k_m416","stunstick","door_ram","weaponchecker"},
  111.     command = "swatc",
  112.     max = 1,
  113.     salary = 60,
  114.     admin = 0,
  115.     vote = false,
  116.         hasLicense = true,
  117.         customCheck = function(ply) return table.HasValue({"donator","moderator","admin","superadmin","master","owner"}, ply:GetNWString("usergroup")) end
  118.        
  119. })
  120.  
  121. TEAM_MBOSS = DarkRP.createJob("Mob Boss", {
  122.     color = Color(55, 55, 55, 215),
  123.     model = "models/vito.mdl",
  124.     description = [[You are the meanest and toughest gangster out there. Lead your fellow gangsters to victory and guide them to successful raids.]],
  125.     weapons = {"lockpick","keypad_cracker"},
  126.     command = "mobboss",
  127.     max = 1,
  128.     salary = 150,
  129.     admin = 0,
  130.     vote = true,
  131.     hasLicense = true,
  132.    
  133. })
  134.  
  135. TEAM_BLK = DarkRP.createJob("Black Market Dealer", {
  136.     color = Color(50, 50, 50, 255),
  137.     model = "models/player/leet.mdl",
  138.     description = [[Sells highly illegal weapons such as sniper rifles and machine guns.]],
  139.     weapons = {},
  140.     command = "blackmarket",
  141.     max = 2,
  142.     salary = 60,
  143.     admin = 0,
  144.     vote = true,
  145.     hasLicense = false,
  146.    
  147. })
  148.  
  149. TEAM_SEWER = DarkRP.createJob("Sewer Monster", {
  150.     color = Color(255, 100, 100, 255),
  151.     model = "models/player/charple.mdl",
  152.     description = [[DONATOR ONLY! Stay in the sewers and kill anyone who comes in.]],
  153.     weapons = {"m9k_machete"},
  154.     command = "sewermonster",
  155.     max = 3,
  156.     salary = 0,
  157.     admin = 0,
  158.     vote = false,
  159.     hasLicense = false,
  160.     customCheck = function(ply) return table.HasValue({"donator","moderator","admin","superadmin","master","owner"}, ply:GetNWString("usergroup")) end
  161.    
  162. })
  163.  
  164. TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
  165.     color = Color(255, 0, 0, 255),
  166.     model = "models/player/Barney.mdl"},
  167.     description = [[Admin on Duty. Do not RP while on this job.]],
  168.     weapons = {""},
  169.     command = "admin",
  170.     max = 5,
  171.     salary = 0,
  172.     admin = 1,
  173.     vote = false,
  174.     hasLicense = false,
  175.    
  176. })
  177.  
  178. TEAM_GUARD = DarkRP.createJob("Security Guard", {
  179.     color = Color(6, 153, 213, 255),
  180.     model = {
  181.     "models/player/guard_pack/guard_01.mdl",
  182.     "models/player/guard_pack/guard_02.mdl",
  183.     "models/player/guard_pack/guard_03.mdl",
  184.     "models/player/guard_pack/guard_04.mdl",
  185.     "models/player/guard_pack/guard_05.mdl"},
  186.     description = [[Get paid to protect people.]],
  187.     weapons = {"m9k_deagle_drp","m9k_honeybadger"},
  188.     command = "guard",
  189.     max = 4,
  190.     salary = 50,
  191.     vote = false,
  192.     admin = 0,
  193.     hasLicense = false,
  194.    
  195. })
  196.  
  197. TEAM_PONY = DarkRP.createJob("Pony", {
  198.     color = Color(250, 10, 210, 255),
  199.     model = {"models/ppm/player_default_base_nj.mdl","models/ppm/player_default_base_ragdoll.mdl"},
  200.     description = [[Be a little pony and hurt people >:)]],
  201.     weapons = {"m9k_smgp90","m9k_coltpython"},
  202.     command = "pony",
  203.     max = 5,
  204.     salary = 20,
  205.     admin = 0,
  206.     vote = false,
  207.     hasLicense = false,
  208.    
  209. })
  210.  
  211. TEAM_CLEAD = DarkRP.createJob("Crypt Leader", {
  212.     color = Color(0, 0, 255, 255),
  213.     model = "models/player/slow/jknies/cripz/slow_3.mdl",
  214.     description = [[Leader of the crypt gang]],
  215.     weapons = {"m9k_deagle","m9k_dbarrel"},
  216.     command = "clead",
  217.     max = 1,
  218.     salary = 75,
  219.     admin = 0,
  220.     vote = true,
  221.     hasLicense = false,
  222.    
  223. })
  224.  
  225. TEAM_CGANG = DarkRP.createJob("Crypt Gang", {
  226.     color = Color(0, 0, 255, 255),
  227.     model = {
  228.     "models/player/slow/jknies/cripz/slow_1.mdl",
  229.     "models/player/slow/jknies/cripz/slow_1.mdl"},
  230.     description = [[Listen to your leader.]],
  231.     weapons = {"m9k_honeybadger"},
  232.     command = "cgang",
  233.     max = 3,
  234.     salary = 25,
  235.     admin = 0,
  236.     vote = false,
  237.     hasLicense = false,
  238.    
  239. })
  240.  
  241. TEAM_BLEAD = DarkRP.createJob("Blood Leader", {
  242.     color = Color(255, 0, 0, 255),
  243.     model = "models/player/slow/jknies/bloodz/slow_2.mdl",
  244.     description = [[Leader of the Blood Gang]],
  245.     weapons = {"m9k_deagle","m9k_dbarrel"},
  246.     command = "blead",
  247.     max = 1,
  248.     salary = 75,
  249.     admin = 0,
  250.     vote = true,
  251.     hasLicense = false,
  252.    
  253. })
  254.  
  255. TEAM_BGANG = DarkRP.createJob("Blood Gang", {
  256.     color = Color(255, 0, 0, 255),
  257.     model = {
  258.     "models/player/slow/jknies/bloodz/slow_3.mdl",
  259.     "models/player/slow/jknies/bloodz/slow_1.mdl"},
  260.     description = [[Member of the Blood Gang]],
  261.     weapons = {"m9k_honeybadger"},
  262.     command = "bgang",
  263.     max = 1,
  264.     salary = 25,
  265.     admin = 0,
  266.     vote = false,
  267.     hasLicense = false,
  268.    
  269. })
  270.  
  271. TEAM_PROST = DarkRP.createJob("Prostitute", {
  272.     color = Color(255, 255, 0, 255),
  273.     model = "models/csxxx_pm.mdl",
  274.     description = [[Sit on the streets and wait for those special calls ;)]],
  275.     weapons = {""},
  276.     command = "prost",
  277.     max = 2,
  278.     salary = 10,
  279.     admin = 0,
  280.     vote = false,
  281.     hasLicense = false,
  282.    
  283. })
  284.  
  285. TEAM_WOLF = DarkRP.createJob("Wolf", {
  286.     color = Color(0, 0, 0, 255),
  287.     model = {
  288.     "models/verdugo/verdugo.mdl",
  289.     "models/dpfilms/metropolice/tribal_police.mdl"},
  290.     description = [[For Wolf]],
  291.     weapons = {"m9k_dbarrel","m9k_m60","m9k_scar","m9k_amd65"," m9k_auga3","m9k_m1918bar","m9k_sig_p229r","m9k_knife","m9k_honeybadger","m9k_mp7"},
  292.     command = "Wolf",
  293.     max = 1,
  294.     salary = 100,
  295.     admin = 1,
  296.     vote = false,
  297.     hasLicense = false,
  298.     customCheck = function(ply) return table.HasValue({"owner"}, ply:GetNWString("usergroup"))
  299.     or ply:SteamID()=="STEAM_0:0:67620036"
  300.     end
  301.    
  302. })
  303.  
  304. TEAM_MURD = DarkRP.createJob("Ninja Badass", {
  305.     color = Color(255, 0, 0, 255),
  306.     model = "models/zed/zed.mdl",
  307.     description = [[Zed Model]],
  308.     weapons = {"climb_swep2","m9k_psg1","m9k_honeybadger","ls_sniper","m9k_usc"},
  309.     command = "ninja",
  310.     max = 2,
  311.     salary = 100,
  312.     admin = 0,
  313.     vote = false,
  314.     hasLicense = false,
  315.     customCheck = function(ply) return ply:SteamID()=="STEAM_0:0:53698800"
  316.     or ply:SteamID()=="STEAM_0:0:67620036"
  317.     end
  318.    
  319. })
  320.  
  321. TEAM_MUSL = DarkRP.createJob("Muslim Twin", {
  322.     color = Color(0, 0, 255, 255),
  323.     model = {
  324.     "models/v/v.mdl",
  325.     "models/verdugo/verdugo.mdl",
  326.     "models/player/edward_kenway.mdl",
  327.     "models/masterchief_pack/slow_masterchief_blue.mdl",
  328.     "models/obama/obama.mdl",
  329.     "models/karasz/mario/spiny.mdl",
  330.     "models/karasz/mario/goomba.mdl",
  331.     "models/karasz/mario/boo.mdl",
  332.     "models/karasz/mario/bob_omb.mdl",
  333.     "models/player/jesus/jesus.mdl",
  334.     "models/player/zack/zackhalloween.mdl",
  335.     "models/zed/zed.mdl","models/v/v.mdl",
  336.     "models/tdmcars/bug_veyronss.mdl",
  337.     "models/apocmodels/mario/yoshi_mega.mdl"},
  338.     description = [[Muslims Job he can either RP with it or Admin with it.]],
  339.     weapons = {"m9k_winchester73","m9k_minigun","m9k_scoped_taurus","m9k_dbarrel","m9k_m98b","m9k_ied_detonator","m9k_honeybadger","weapon_bugbait","lockpick","keypad_cracker","climb_swep2"},
  340.     command = "musl",
  341.     max = 1,
  342.     salary = 100,
  343.     admin = 1,
  344.     vote = false,
  345.     hasLicense = false,
  346.     customCheck = function(ply) return ply:SteamID()=="STEAM_0:0:67620036"
  347.     end
  348.    
  349. })
  350.  
  351. TEAM_KAM = DarkRP.createJob("Kamman", {
  352.     color = Color(230, 110, 246, 255),
  353.     model = {
  354.     "models/player/edward_kenway.mdl",
  355.     "models/player/Barney.mdl",
  356.     "models/v/v.mdl",
  357.     "models/infected/jeffry.mdl",
  358.     "models/dpfilms/metropolice/tribal_police.mdl",
  359.     "models/obama/obama.mdl"},
  360.     description =    [[Do what you want :).]],
  361.     weapons = {"m9k_honeybadger","m9k_ied_detonator","m9k_knife","m9k_svu","m9k_val","m9k_scoped_taurus","weapon_crowbar","weapon_bugbait","lockpick", "keypad_cracker","m9k_dbarrel","m9k_minigun","m9k_m98b","m9k_ak47"},
  362.     command = "kamman",
  363.     max = 2,
  364.     salary = 60,
  365.     admin = 1,
  366.     vote = false,
  367.     hasLicense = false,
  368.     customCheck = function(ply) return ply:SteamID()=="STEAM_0:1:70507014"
  369.     or ply:SteamID()=="STEAM_0:0:67620036"
  370.    end
  371.    
  372. })
  373.  
  374. /*---------------------------------------------------------------------------
  375. Define which team joining players spawn into and what team you change to if demoted
  376. ---------------------------------------------------------------------------*/
  377. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  378.  
  379.  
  380. /*---------------------------------------------------------------------------
  381. Define which teams belong to civil protection
  382. Civil protection can set warrants, make people wanted and do some other police related things
  383. ---------------------------------------------------------------------------*/
  384. GAMEMODE.CivilProtection = {
  385.     [TEAM_POLICE] = true,
  386.     [TEAM_CHIEF] = true,
  387.     [TEAM_MAYOR] = true,   
  388.     [TEAM_SWAT] = true,
  389.     [TEAM_SWATC] = true,
  390. }
  391.  
  392. /*---------------------------------------------------------------------------
  393. Jobs that are hitmen (enables the hitman menu)
  394. ---------------------------------------------------------------------------*/
  395. DarkRP.addHitmanTeam(TEAM_HIT)
  396. DarkRP.addHitmanTeam(TEAM_ADVHIT)
  397. DarkRP.addHitmanTeam(TEAM_MUSL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement