DarkNessProvides

UnknownRP DarkRP Custom Jobs

Nov 8th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.33 KB | None | 0 0
  1. TEAM_SCHIEF = DarkRP.createJob("SWAT Chief", { -- Name
  2.     color = Color(0, 0, 255, 255), -- Team color
  3.     model = "models/player/urban.mdl", -- Player model
  4.     description = [[The SWAT is the protector of the city, and it is your duty to keep the peace of all!]],  -- Job description
  5.     weapons = {"fas2_m4a1","fas2_deagle"}, -- Additional weapons
  6.     command = "schief", -- Command to become the job
  7.     max = 1, -- Maximum amount of said job
  8.     salary = 150, -- Salary
  9.     vote = false, -- Do they need to vote? true for yes, false for no.
  10.     hasLicense = true, -- Has a license
  11.     candemote = false,
  12.     chief = true
  13. })
  14.  
  15. TEAM_SWAT = DarkRP.createJob("SWAT", { -- Name
  16.     color = Color(0, 0, 255, 255), -- Team Color
  17.     model = "models/player/riot.mdl", -- Player Model
  18.     description = [[The SWAT is the protector of the city, and it is your duty to keep the peace of all!]], -- Job Description
  19.     weapons = {"fas2_m4a1", "fas2_deagle"}, -- Additional Weapons
  20.     command = "swat",
  21.     max = 5,
  22.     salary = 100,
  23.     vote = false,
  24.     hasLicense = true,
  25.     candemote = false
  26. })
  27.  
  28. TEAM_SWATSNIPER = DarkRP.createJob("SWAT Sniper", { -- Name
  29.     color = Color(0, 0, 255, 255), -- Team Color
  30.     model = "models/player/riot.mdl", -- Player Model
  31.     description = [[The SWAT is the protector of the city, and it is your duty to keep the peace of all!]], -- Job Description
  32.     weapons = {"fas2_m82", "fas2_p226"}, -- Additional Weapons
  33.     command = "swatsniper",
  34.     max = 5,
  35.     salary = 100,
  36.     vote = false,
  37.     hasLicense = true,
  38.     candemote = false
  39. })
  40.  
  41. TEAM_HIT = DarkRP.createJob("Hitman", {
  42.     color = Color(0, 0, 255, 0),
  43.     model = "models/player/guerilla.mdl",
  44.     description = [[As a hitman, you are the most elite of assassins. You work below the radar and take money for killing people.]],
  45.     weapons = {"fas2_p226", "fas2_dv2"},
  46.     command = "hitman",
  47.     max = 3,
  48.     salary = 50,
  49.     vote = false,
  50.     hasLicense = false,
  51.     candemote = false
  52. })
  53. TEAM_FRUNNER = DarkRP.createJob("FreeRunner", {
  54.     color = Color(60, 135, 185, 255),
  55.     model = "models/player/p2_chell.mdl",
  56.     description = [[As a Free Runner you run rampant through the streets jumping over every possible thing climbing all buildings!]],
  57.     weapons = {"fas2_dv2"},
  58.     command = "freerunner",
  59.     max = 3,
  60.     salary = 75,
  61.     vote = false,
  62.     hasLicense = false,
  63.     customCheck = function(ply) return ply:GetUserString("") == "vip" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have an extra check
  64.     CustomCheckFailMsg = "You must be donator to use this job!",
  65.     candemote = false
  66. })
  67.  TEAM_HOBO = DarkRP.createJob("Hobo", {
  68.     color = Color(175, 120, 0 ,255),
  69.     model = "models/player/corpse1.mdl",
  70.     description = [[Your a dirty man whos been cast aside by society and are forced to live on the streets.]],
  71.     weapons = {"weapon_bugbait"},
  72.     command = "hobo",
  73.     max = 5,
  74.     salary = 0,
  75.     vote = false,
  76.     hasLicense = false,
  77.     candemote = false,
  78.     hobo = true
  79. })
  80. TEAM_SDWELL = DarkRP.createJob("Sewer Dweller", {
  81.     color = Color(175, 120, 0, 255),
  82.     model = "models.player/charple.mdl",
  83.     description = [[Your a disgusting man who was in a horrific accident that left you singed all over and were forced into the sewers by society.]],
  84.     weapons = {"weapon_crowbar", "weapon_bugbait"},
  85.     command = "sewerdweller",
  86.     max = 5,
  87.     salary = 0,
  88.     vote = false,
  89.     hasLicense = false,
  90.     candemote = false,
  91.     hobo = true
  92. })
  93. TEAM_POLICE = DarkRP.createJob("Police Officer", {
  94.     color = Color(0, 0, 255, 255),
  95.     model = "models/player/police.mdl",
  96.     description = [[Your part of the Police squad who patrol the streets of downtown looking for law breakers.]],
  97.     weapons = {"fas2_mp5sd6", "fas2_0ts33pernach"},
  98.     command = "police",
  99.     max = 3,
  100.     salary = 75,
  101.     vote = false,
  102.     hasLicense = false,
  103.     candemote = false
  104. })
  105.  
  106. TEAM_PCHIEF = DarkRP.createJob("Police Chief", {
  107.     color = Color(0, 0, 255, 255),
  108.     model = "models/player/combine_soldier_prisonguard.mdl",
  109.     description = [[Your part of the Police squad who patrol the streets of downtown looking for law breakers.]],
  110.     weapons = {"fas2_toz34", "fas2_ots33pernach"},
  111.     command = "policechief",
  112.     max = 1,
  113.     salary = 150,
  114.     vote = false,
  115.     hasLicense = false,
  116.     candemote = false,
  117.     chief = true
  118. })
  119.  
  120. TEAM_MHIT = DarkRP.createJob("Master Hitman", {
  121.     color = Color(0, 0, 255, 0),
  122.     model = "models/player/leet.mdl",
  123.     description = [[As a Master hitman, you are the most elite of assassins. You work below the radar and take money for killing people.]],
  124.     weapons = {"fas2_m14","fas2_glock20"},
  125.     command = "masterhitman",
  126.     max = 3, -- at most 70% of the players can have this job. Set to a whole number to set an absolute limit.
  127.     salary = 75,
  128.     vote = false,
  129.     hasLicense = false,
  130.     customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:IsAdmin() end,
  131.     CustomCheckFailMsg = "You must be a donator to use this job!", -- alternative: CustomCheckFailMsg = function(ply, jobTable) return ply:getDarkRPVar("money") < 5000 and "You're piss poor" or "You don't have enough money!" end,,
  132.     candemote = false
  133. })
  134.  
  135. TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
  136.     color = Color(0, 0, 0, 255),
  137.     model = "models/player/kuma/taliban_rpg.mdl",
  138.     description = [[Your a man of terror who targets the government in violent attacks to try and get himself heard.]],
  139.     weapons = {"fas2_ak47", "fas2_deagle", "fas2_machete"},
  140.     command = "terrorist",
  141.     max = 3,
  142.     salary = 25,
  143.     vote = false,
  144.     hasLicense = false,
  145.     customCheck = function(ply) return ply:GetUserString("") == "vip" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have an extra check
  146.     CustomCheckFailMsg = "You must be donator to use this job!",
  147.     candemote = false
  148. })
  149.  
  150. TEAM_GUNDEALER = DarkRP.createJob("Gun Dealer", {
  151.     color = Color(255, 200, 0, 255),
  152.     model = "models/player/monk.mdl",
  153.     description = [[You sell illegal guns to the law breakers of downtown.]],
  154.     weapons = {},
  155.     command = "gundealer",
  156.     max = 3,
  157.     salary = 50,
  158.     vote = false,
  159.     hasLicense = false,
  160.     candemote = false
  161. })
  162.  
  163. TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
  164.     color = Color(255, 200, 0, 255),
  165.     model = "models/player/eli.mdl",
  166.     description = [[Your the guy that all the big boys come to for the big guns that they'll pay big bucks for.]],
  167.    weapons = {},
  168.    command = "blackmarketdealer",
  169.    max = 3,
  170.    salary = 100,
  171.    vote = false,
  172.    hasLicense = false,
  173.    candemote = false
  174. })
  175.      
  176. TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
  177.    color = Color(150, 0, 255, 255),
  178.    model = "models/player/odessa.mdl",
  179.    description = [[Your the guy that feeds the drug addicts of downtown that will wonder round in the shadows looking for customers.]],
  180.    weapons = {},
  181.    command = "drugdealer",
  182.    max = 2,
  183.    salary = 75,
  184.    vote = false,
  185.    hasLicense = false,
  186.    candemote = false
  187. })
  188.      
  189. TEAM_SECURITY = DarkRP.createJob("Security Guard", {
  190.    color = Color(0, 165, 205, 255),
  191.    model = "models/player/guard_pack/guard_02.mdl",
  192.    description = [[You were fired from your old job as security guard and now you look for new employers to hire you for your services.]],
  193.    weapons = {"fas2_p226"},
  194.    command = "securityguard",
  195.    max = 4,
  196.    salary = 100,
  197.    vote = false,
  198.    hasLicense = true,
  199.    candemote = false
  200. })
  201.  
  202. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  203.    color = Color(185, 0, 0, 255),
  204.    model = "models/player/breen.mdl",
  205.    description = [[Your in charge of everything you decide on the laws and you control where SWAT can raid.]],
  206.    weapons = ("fas2_glock20"),
  207.    command = "mayor",
  208.    max = 1,
  209.    salary = 500,
  210.    vote = true,
  211.    hasLicense = true,
  212.    candemote = true,
  213.    mayor = true,
  214. })
  215.  
  216. TEAM_THIEF = DarkRP.createJob("Thief", {
  217.    color = Color(155, 155, 155, 255),
  218.    model = "models/player/arctic.mdl",
  219.    description = [[Your the evil of downtown who steals whatever they can trying to be as quiet as possible whilst doing so.]],
  220.    weapons = {},
  221.    command = "thief",
  222.    max = 5,
  223.    salary = 75,
  224.    vote = false,
  225.    hasLicense = false,
  226.    candemote = false
  227. })
  228.  
  229. TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
  230.    color = Color(155, 155, 155, 255),
  231.    model = "models/player/phoenix.mdl",
  232.    description = [[Your the evil of downtown who steals whatever they can trying to be as quiet as possible whilst doing so but with the professional equipment.]],
  233.    weapons = {"fas2_0ts33pernach"},
  234.    command = "masterthief",
  235.    max = 3,
  236.    salary = 125,
  237.    vote = false,
  238.    hasLicense = false,
  239.    customCheck = function(ply) return ply:GetUserString("") == "nil" or ply:IsAdmin() end, -- The extra check function. Enter nil or nothing to not have an extra check
  240.    CustomCheckFailMsg = "You must be donator to use this job!",
  241.    candemote = false
  242. })
  243.  
  244. TEAM_MOB = DarkRP.createJob("Mob Boss", {
  245.    color = Color(80, 80, 80, 255),
  246.     models = "models/player/gman_high.mdl",
  247.     description = [[You are in charge of the obedient gangsters that choose to listen to you.]],
  248.     weapons = {"fas2_m1911"},
  249.     command = "mobboss",
  250.     max = 2,
  251.     salary = 100,
  252.     vote = false,
  253.     hasLicense = false,
  254.    candemote = false
  255. })
  256.  
  257. TEAM_GANG = DarkRP.createJob("Gangster", {
  258.    color = Color(80, 80, 80, 255),
  259.    models = "models/player/Group_03/male_02.mdl",
  260.    description = [[You work for the mob bosses of downtown but you choose who to actually listen to.]],
  261.    weapons = {"fas2_m1911"},
  262.    command = "gangster",
  263.    max = 5,
  264.    salary = 75,
  265.    vote = false,
  266.    hasLicense = false,
  267.    candemote = false
  268. })
  269.  
  270. TEAM_DJ = DarkRP.createJob("Radio DJ", {
  271.    color = Color(50, 125, 255, 255),
  272.    models = "models/player/kleiner.mdl",
  273.    description = [[You play music in your portable booth around the streets of downtown.]],
  274.    weapons = {},
  275.    command = "dj",
  276.    max = 3,
  277.    salary = 75,
  278.    vote = false,
  279.    hasLicense = false,
  280.    candemote = false
  281. })
  282.  
  283. TEAM_MEDIC = DarkRP.createJob("Medic", {
  284.    color = Color(255, 215, 50, 255),
  285.    models = "models/player/Group03m/female_02.mdl",
  286.    description = [[You go round helping the injured or even reviving the dead!]],
  287.    weapons = ("fas2_infantryfirstaidkit"),
  288.    command = "medic",
  289.    max = 2,
  290.    salary = 100,
  291.    vote = false,
  292.    hasLicense = false,
  293.    candemote = false
  294. })
  295.  
  296.  
  297.  
  298. GAMEMODE.DefaultTeam = {
  299.        [TEAM_CITIZEN] = true
  300. }
  301.  
  302. --[[---------------------------------------------------------------------------
  303. Define which teams belong to civil protection
  304. Civil protection can set warrants, make people wanted and do some other police related things
  305. ---------------------------------------------------------------------------]],
  306. GAMEMODE.CivilProtection = {
  307.        [TEAM_POLICE] = true,
  308.        [TEAM_SCHIEF] = true,
  309.        [TEAM_MAYOR] = true,
  310.        [TEAM_SWAT] = true,
  311.        [TEAM_SWATSNIPER] = true,
  312.        [TEAM_PCHIEF] = true,
  313. }
  314.  
  315. --[[---------------------------------------------------------------------------
  316. Jobs that are hitmen (enables the hitman menu)
  317. ---------------------------------------------------------------------------]],
  318. DarkRP.addHitmanTeam(TEAM_HIT)
  319. DarkRP.addHitmanTeam(TEAM_MHIT)
Advertisement
Add Comment
Please, Sign In to add comment