The job is
TEAM_PoliceOfficer = DarkRP.createJob(“Police Officer”, {
color = Color(0, 0, 0, 255),
model = {“models/player/nypd/male_09.mdl”},
description = [[Protect the city]],
weapons = {“darkrp_handcuffs”, “m9k_remington870”, “stunstick”, “unarrest_stick”, “weaponchecker”, “keys”, “q”, “door_ram”, “m9k_fists”, “m9k_usp”},
command = “PoliceOfficer”,
max = 6,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = “Government”,
ammo = {
[“item_box_buckshot”] = 120,
[“item_ammo_pistol”] = 120
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(96)
end
})
I renamed Civil protection as Government
GAMEMODE.Government= {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
My problem is every time i try to add a Team to gamemode governements it gives me lua errors, its not allowing me to let them use commands like /wanted or /warrant if any one knows how to fix this that would be the best.