okay so this is driving me absolutely nuts, i am trying to setup these 2 classes police chief and police deputy at first i wasnt able to switch to the chief job , now i can just switch to chief without being deputy. i have the default police disable , i have them both in the same category and i have them both in gamemode.civilprotection please someone help me before i have a stroke, does anyone see anything wrong with this code?
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
level = 30,
color = Color(20, 20, 255, 255),
model = "models/player/nypd/cop_04.mdl",
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_remington870", "m9k_m92beretta", "stunstick", "door_ram", "weapon_checker"},
command = "policechief",
max = 1,
salary = 1500,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
category = "Law Enforcement",
NeedToChangeFrom = TEAM_POLICED,
PlayerSpawn = function(ply) ply:SetArmor( 100 ) end,
ammo = {
["pistol"] = 60,
["buckshot"] = 60,
}
})
TEAM_POLICED = DarkRP.createJob("Police Deputy", {
color = Color(25, 25, 170, 255),
model = "models/player/nypd/cop_07.mdl",
description = [[The protector of every citizen that lives in the city.
You enforce the mayors laws, and protect citizens.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_hk45", "stunstick", "door_ram", "weapon_checker"},
command = "policedeputy",
max = 6,
salary = 750,
admin = 0,
PlayerSpawn = function(ply) ply:SetArmor( 100 ) end,
vote = true,
hasLicense = true,
category = "Law Enforcement",
})
DarkRP.createCategory{
name = "Law Enforcement",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}
GAMEMODE.CivilProtection = {
[TEAM_POLICED] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_BODY] = true,
[TEAM_ASSISTANT] = true,
}
let me know if you need more code or anything i know next to nothing about lua so idk what im doing