-- Example Custom Jobs for Different Playstyles
-- Law Enforcement
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Protect and serve the city.
Arrest lawbreakers and keep the city safe.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "police",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
category = "Civil Protection",
PlayerSpawn = function(ply)
ply:SetArmor(100)
return
end
})
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[The chief of police is the leader of the Civil Protection unit.
Coordinate the police force to enforce law and order in the city.
Hit a player with arrest baton to arrest them.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
chief = true,
category = "Civil Protection",
PlayerSpawn = function(ply)
ply:SetArmor(100)
return
end
})
-- Government Officials
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city.
You make the laws and manage the Police Force.
Type /joblaws to set laws.]],
weapons = {},
command = "mayor",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})
-- Criminals
TEAM_GANG = DarkRP.createJob("Gang Member", {
color = Color(75, 75, 75, 255),
model = {
"models/player/group03/male_01.mdl",
"models/player/group03/male_02.mdl",
"models/player/group03/male_03.mdl",
"models/player/group03/male_04.mdl"
},
description = [[The lowest person in the criminal ladder.
A gang member having great success may be invited to the mob.]],
weapons = {},
command = "gangster",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
TEAM_MOB = DarkRP.createJob("Mob Boss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[The leader of the criminals in the city.
Run the crime syndicate and organize your gangsters to take control.]],
weapons = {"lockpick"},
command = "mobboss",
max = 1,
salary = 90,
admin = 0,
vote = true,
hasLicense = false,
category = "Gangsters",
})
-- Commercial
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren't caught selling illegal firearms to terrorists or cops!]],
weapons = {},
command = "gundealer",
max = 2,
salary = 85,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[With your medical knowledge, you heal players to full health.
You also have the ability to sell medical supplies.]],
weapons = {"med_kit"},
command = "medic",
max = 3,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
})
TEAM_COOK = DarkRP.createJob("Cook", {
color = Color(238, 99, 99, 255),
model = "models/player/mossman.mdl",
description = [[As a cook, you can use your culinary expertise to create delicious food.
Sell your culinary creations to hungry players in the city.]],
weapons = {},
command = "cook",
max = 2,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
category = "Citizens",
})