Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*---------------------------------------------------------------------------
- DarkRP custom jobs
- ---------------------------------------------------------------------------
- This file contains your custom jobs.
- This file should also contain jobs from DarkRP that you edited.
- Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
- Once you've done that, copy and paste the job to this file and edit it.
- The default jobs can be found here:
- https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
- For examples and explanation please visit this wiki page:
- http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
- Add jobs under the following line:
- ---------------------------------------------------------------------------*/
- TEAM_POLICE = DarkRP.createJob("Civil Protection", {
- color = Color(25, 25, 170, 255),
- model = {
- "models/player/uk_police/uk_police_01.mdl",
- "models/player/uk_police/uk_police_02.mdl",
- "models/player/uk_police/uk_police_03.mdl",
- "models/player/uk_police/uk_police_04.mdl",
- "models/player/uk_police/uk_police_05.mdl",
- "models/player/uk_police/uk_police_06.mdl",
- "models/player/uk_police/uk_police_07.mdl",
- "models/player/uk_police/uk_police_08.mdl",
- "models/player/uk_police/uk_police_09.mdl"
- },
- description = [[5* - The protector of every citizen that lives in the city.]],
- weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker", "weapon_rad15", "weapon_stungun"},
- command = "cp",
- max = 5,
- salary = 50,
- admin = 0,
- level = 5,
- vote = false,
- hasLicense = true,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- ammo = {
- ["pistol"] = 60,
- }
- })
- ---------------------------------------------------------------------------*/
- TEAM_FBI = DarkRP.createJob("FBI", {
- color = Color(20, 20, 255, 255),
- 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.mdl",
- "models/fbi_pack/fbi_09.mdl"
- },
- description = [[5* - The FBI belongs to the Government unit.]],
- weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "stunstick", "door_ram", "weaponchecker", "weapon_rad15", "weapon_stungun"},
- command = "fbi",
- max = 4,
- salary = 100,
- level = 5,
- admin = 0,
- vote = false,
- hasLicense = true,
- chief = true,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- ammo = {
- ["pistol"] = 60,
- }
- })
- ---------------------------------------------------------------------------*/
- TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
- color = Color(25, 25, 170, 255),
- model = {"models/player/lordvipes/rerc_vector/vector_cvp.mdl"},
- description = [[3* - The protector of every citizen that lives in the city.]],
- weapons = {"arrest_stick", "unarrest_stick", "fas2_mp5sd6", "stunstick", "door_ram", "weaponchecker", "handcuffs", "weapon_rad15", "weapon_stungun"},
- command = "swat",
- max = 4,
- salary = 125,
- admin = 0,
- vote = false,
- hasLicense = true,
- PlayerLoadout = function(ply) ply:SetArmor(200) end,
- chief = true,
- customCheck = function(ply) return CLIENT or return table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
- CustomCheckFailMsg = "This job is for Premium only",
- })
- ---------------------------------------------------------------------------*/
- TEAM_CARTEL = DarkRP.createJob("Cartel Member", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/sd/players/[dbs_brawler]-head_brawler_dbs.mdl",
- "models/sd/players/[dbs_brawler_2]-head_brawler_dbs.mdl",
- "models/sd/players/[dbs_grappler].mdl",
- "models/sd/players/[dbs_grappler_2].mdl",
- "models/sd/players/[dbs_quick]-head_quick_dbs.mdl",
- "models/sd/players/[dbs_quick]-head_quick_dbs_2.mdl",
- "models/sd/players/[dbs_quick]-head_striker_dbs.mdl",
- "models/sd/players/[dbs_striker]-head_quick_dbs.mdl",
- "models/sd/players/[dbs_striker]-head_quick_dbs_2.mdl",
- "models/sd/players/[dbs_striker]-head_striker_dbs.mdl"
- },
- description = [[The lowest person of crime.]],
- weapons = {},
- command = "cartel",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_CLEADER = DarkRP.createJob("Cartel Leader", {
- color = Color(125, 125, 125, 255),
- model = "models/ninja/vaas.mdl",
- description = [[Cartel Leader is the boss of the criminals in the city.]],
- weapons = {"lockpick", "unarrest_stick"},
- command = "cleader",
- max = 1,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- if killer:IsPlayer() then
- DarkRP.notifyAll(0, 4, "The Cartel Leader has been killed and is therefor demoted.")
- else
- DarkRP.notifyAll(0, 4, "The Cartel Leader has died and is therefor demoted.")
- end
- end
- })
- ---------------------------------------------------------------------------*/
- TEAM_GUN = DarkRP.createJob("Gun Dealer", {
- color = Color(255, 140, 0, 255),
- model = "models/player/monk.mdl",
- description = [[5* - You sell guns, duh]],
- weapons = {"rphands", "weapon_arc_atmcard", "itemstore_pickup"},
- command = "gd",
- max = 3,
- salary = 25,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_MECH = DarkRP.createJob("Mechanic", {
- color = Color(0, 255, 222, 255),
- model = "models/mark2580/borderlands_ps/moxxi_garage.mdl",
- description = [[Repair Cars.]],
- weapons = {"vc_repair"},
- command = "mech",
- max = 3,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_ESCORT = DarkRP.createJob("Escort Girl", {
- color = Color(255, 0, 255, 255),
- model = "models/player/lilith/lilith.mdl",
- description = [[""Escort"" people around the city]],
- weapons = {"fas2_dv2"},
- command = "escort",
- max = 3,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
- color = Color(255, 153, 0, 255),
- model = "models/player/korka007/nick.mdl",
- description = [[Make 'em say Your name!]],
- weapons = {},
- command = "drug",
- max = 3,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_BMD = DarkRP.createJob("Blackmarket Dealer", {
- color = Color(255, 140, 0, 255),
- model = {
- "models/mark2580/killing/steampunk/sp_mr_foster.mdl",
- "models/mark2580/killing/steampunk/sp_mrs_foster.mdl"
- },
- description = [[Got some rare things on sale, stranger!]],
- weapons = {},
- command = "bmd",
- max = 3,
- salary = 25,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
- CustomCheckFailMsg = "This job is for Premium only",
- })
- ---------------------------------------------------------------------------*/
- TEAM_MEDIC = DarkRP.createJob("Medic", {
- color = Color(47, 79, 79, 255),
- model = "models/mark2580/borderlands2/maya_siren_xm.mdl",
- description = [[You work to restore players to full health.]],
- weapons = {"fas2_ifak"},
- command = "medic",
- max = 3,
- salary = 25,
- admin = 0,
- vote = false,
- hasLicense = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- medic = true
- })
- ---------------------------------------------------------------------------*/
- TEAM_MAYOR = DarkRP.createJob("Mayor", {
- color = Color(150, 20, 20, 255),
- model = "models/gdub.mdl",
- description = [[5* - The Mayor of the city]],
- weapons = {},
- command = "mayor",
- max = 1,
- salary = 150,
- admin = 0,
- level = 5,
- vote = true,
- hasLicense = true,
- PlayerLoadout = function(ply) ply:SetArmor(100) end,
- CanPlayerSuicide = function(ply) return false end,
- mayor = true,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- if killer:IsPlayer() then
- DarkRP.notifyAll(0, 4, "The mayor has been killed and is therefor demoted.")
- else
- DarkRP.notifyAll(0, 4, "The mayor has died and is therefor demoted.")
- end
- end
- })
- ---------------------------------------------------------------------------*/
- TEAM_HOBO = DarkRP.createJob("Hobo", {
- color = Color(184, 134, 11, 255),
- model = "models/player/eli.mdl",
- description = [[The lowest member of society. Everybody laughs at you.]],
- weapons = {"weapon_bugbait"},
- command = "hobo",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hobo = true
- })
- ---------------------------------------------------------------------------*/
- TEAM_THIEF = DarkRP.createJob("Thief", {
- color = Color(150, 150, 150, 255),
- model = "models/player/Group03/male_07.mdl",
- description = [[You are a thief, mug people, raid houses]],
- weapons = {"lockpick", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
- command = "thief",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_PTHIEF = DarkRP.createJob("Premium Thief", {
- color = Color(192, 192, 192, 255),
- model = "models/player/pd2_wolf_p.mdl",
- description = [[You are a thief, mug people, raid houses]],
- weapons = {"lockpick", "prokeypadcracker", "weapon_arc_atmhack"}, -- You may wanna find a pickpocket swep and add it here.
- command = "pthief",
- max = 0,
- salary = 65,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
- CustomCheckFailMsg = "This job is for Premium only",
- })
- ---------------------------------------------------------------------------*/
- TEAM_HITMAN = DarkRP.createJob("Hitman", {
- color = Color(49, 79, 49, 255),
- model = "models/player/agent_47.mdl",
- description = [[People hire you to take out other people.]],
- weapons = {"fas2_dv2"},
- command = "hitman",
- max = 4,
- salary = 0,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false
- })
- ---------------------------------------------------------------------------*/
- TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
- color = Color(170, 0, 0, 255),
- model = "models/player/kuma/kuma.mdl",
- description = [[It's up to you to patrol and respond to admin calls.]],
- weapons = {},
- command = "aod",
- max = 0,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- customCheck = function(ply) return CLIENT or return table.HasValue({"moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end
- })
- ---------------------------------------------------------------------------*/
- TEAM_PMC = DarkRP.createJob("PMC", {
- color = Color(0,200,50,255),
- model = "models/steinman/bf4/us_02.mdl",
- description = [[10* People will pay for Your protection.]],
- weapons = {"fas2_mp5sd6"},
- command = "pmc",
- max = 5,
- salary = 0,
- admin = 0,
- admin = 0,
- level = 10,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(100) end,
- hasLicense = true
- })
- ---------------------------------------------------------------------------*/
- TEAM_SGUARD = DarkRP.createJob("Security Guard", {
- color = Color(0,200,50,255),
- model = {
- "models/player/guard_pack/guard_01.mdl",
- "models/player/guard_pack/guard_02.mdl",
- "models/player/guard_pack/guard_03.mdl",
- "models/player/guard_pack/guard_04.mdl",
- "models/player/guard_pack/guard_05.mdl",
- "models/player/guard_pack/guard_06.mdl",
- "models/player/guard_pack/guard_07.mdl",
- "models/player/guard_pack/guard_08.mdl",
- "models/player/guard_pack/guard_09.mdl"
- },
- description = [[Guard the local stores & bank]],
- weapons = {"fas2_deagle", "rphands", "weapon_arc_atmcard"},
- command = "sguard",
- max = 3,
- salary = 45,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = true
- })
- ---------------------------------------------------------------------------*/
- TEAM_BANKER = DarkRP.createJob("Banker", {
- color = Color(243, 217, 223, 255),
- model = "models/player/magnusson.mdl",
- description = [[You control the local city bank.]],
- weapons = {"rphands", "weapon_arc_atmcard"},
- command = "banker",
- max = 1,
- salary = 45,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- })
- ---------------------------------------------------------------------------*/
- TEAM_SS = DarkRP.createJob("Secret Service", {
- color = Color(170, 1, 20, 255),
- model = "models/player/smith.mdl",
- description = [[You are responsible for protecting the mayor.]],
- weapons = {"fas2_p226", "stunstick", "weaponchecker", "rphands", "weapon_arc_atmcard"},
- command = "ss",
- max = 2,
- salary = 65,
- admin = 0,
- vote = true,
- hasLicense = true,
- PlayerLoadout = function(ply) ply:SetArmor(100) end,
- ammo = {
- ["pistol"] = 60,
- }
- })
- ---------------------------------------------------------------------------*/
- TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
- color = Color(205, 183, 158, 255),
- model = "models/player/phoenix.mdl",
- description = [[Bomb the city! *You may only Jihad every ten minute*]],
- weapons = {"rphands", "weapon_arc_atmcard", "weapon_jihad"},
- command = "terrorist",
- max = 3,
- salary = 0,
- admin = 0,
- vote = true,
- hasLicense = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"premium", "admin", "support", "moderator", "operator", "superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
- CustomCheckFailMsg = "This job is for Premium only",
- })
- ---------------------------------------------------------------------------*/
- TEAM_TAXI = DarkRP.createJob("Taxi Driver", {
- color = Color(240, 230, 140, 255),
- model = "models/player/leet.mdl",
- description = [[Use Your car to drive people around the city]],
- weapons = {"rphands", "weapon_arc_atmcard"},
- command = "taxi",
- max = 5,
- salary = 25,
- admin = 0,
- vote = true,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- })
- ---------------------------------------------------------------------------*/
- TEAM_MERCENARY = DarkRP.createJob("Custom - Elite Mercenary", {
- color = Color(128, 0, 128, 255),
- model = "models/blacklist/spy1.mdl",
- description = [[You're a mercenary, open for hire.]],
- weapons = {"lockpick", "keypad_cracker", "fas2_g3", "fas2_m24", "rphands", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
- command = "skarba",
- max = 0,
- salary = 50,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or return ply:SteamID() == "STEAM_0:1:55593568" or ply:IsAdmin() end,
- --or ply:SteamID()=="ADD" - Add for more purchases
- CustomCheckFailMsg = "This is a Custom Job!" -- Allows you to tell the user what went wrong when attempting to switch jobs
- })
- ---------------------------------------------------------------------------*/
- TEAM_DJ = DarkRP.createJob("DJ", {
- color = Color(192, 192, 192, 255),
- model = {
- "models/player/daftpunk/daft_gold.mdl",
- "models/player/daftpunk/daft_silver.mdl"
- },
- description = [[You're the citys beloved DJ]],
- weapons = {"rphands", "weapon_arc_atmcard"}, -- You may wanna find a pickpocket swep and add it here.
- command = "dj",
- max = 2,
- salary = 50,
- admin = 0,
- vote = false,
- PlayerLoadout = function(ply) ply:SetArmor(0) end,
- hasLicense = false,
- })
- ---------------------------------------------------------------------------*/
- /*---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------*/
- GAMEMODE.DefaultTeam = TEAM_CITIZEN
- /*---------------------------------------------------------------------------
- Define which teams belong to civil protection
- Civil protection can set warrants, make people wanted and do some other police related things
- ---------------------------------------------------------------------------*/
- GAMEMODE.CivilProtection = {
- [TEAM_POLICE] = true,
- [TEAM_CHIEF] = true,
- [TEAM_MAYOR] = true,
- [TEAM_FBI] = true,
- [TEAM_SWAT] = true,
- }
- /*---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement