DarkRP Hitman and CP Glitch PLEASE HELP!

Code.

gamemodes/darkrp/gamemode/config/jobsrelated

TEAM_POLICE = DarkRP.createJob(“Police Officer”, {
color = Color(25, 25, 170, 255),
model = {“models/player/elispolice/police.mdl”},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {“weapon_arc_atmcard”, “arrest_stick”, “unarrest_stick”, “m9k_usp”, “stunstick”, “door_ram”, “weaponchecker”},
command = “cp”,
max = 10,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
cp = true,

})

TEAM_CHIEF = DarkRP.createJob(“Police Chief”, {
color = Color(20, 20, 255, 255),
model = “models/player/pil/re1/wesker/wesker_pil.mdl”,
description = [[The Chief is the leader of the Civil Protection unit.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
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 = {“weapon_arc_atmcard”, “arrest_stick”, “unarrest_stick”, “m9k_sig_p229r”, “stunstick”, “door_ram”, “weaponchecker”},
command = “chief”,
max = 1,
salary = 150,
admin = 0,
vote = true,
cp = true,
hasLicense = true,
chief = true,
})

– Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1

/*

HOW TO MAKE A DOOR GROUP

AddDoorGroup(“NAME OF THE GROUP HERE, you see this when looking at a door”, Team1, Team2, team3, team4, etc.)

The default door groups, can also be used as examples:
*/
AddDoorGroup(“Cops and Mayor”, TEAM_CHIEF, TEAM_SWAT, TEAM_SWATSNIPER, TEAM_CPOLICE, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup(“Gundealer”, TEAM_GUN)

/*

HOW TO MAKE AN AGENDA

AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

The default agenda’s, can also be used as examples:
*/
AddAgenda(“Gangster’s agenda”, TEAM_MOB, {TEAM_GANG})
AddAgenda(“Police agenda”, TEAM_MAYOR, {TEAM_CHIEF,TEAM_CPOLIVE, TEAM_SWAT, TEAM_SWATSNIPER, TEAM_POLICE})

/*

HOW TO MAKE A GROUP CHAT

Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.

*/
GM:AddGroupChat(function(ply) return ply:isCP() end)
GM:AddGroupChat(TEAM_MOB, TEAM_GANG)

/---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------
/
GM.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
---------------------------------------------------------------------------
/
GM.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_CPOLICE] = true,
[TEAM_SWAT] = true,
[TEAM_SWATSNIPER] = true,

}

/---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------
/
DarkRP.addHitmanTeam(TEAM_HITMAN, TEAM_PRO)

/---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------
/
DarkRP.createDemoteGroup(“Police”, {TEAM_POLICE, TEAM_CHIEF, TEAM_CPOLICE, TEAM_SWAT, TEAM_SWATSNIPER, TEAM_MAYOR})
DarkRP.createDemoteGroup(“Gangsters”, {TEAM_GANG, TEAM_MOB})

What’s the error you’re getting?

There isent one its just not letting do /warrant …

You shouldn’t be editing core files. Use the modification addon. This is exactly one of those issues that could be avoided if you’d follow the instructions.