On my server, CPs cannot do /warrant and /wanted. It says "You do not have the correct job to do this" or something like that. I use darkrpmodifications. I will post my jobs.lua below. This issue has been going on for a long time now, and I can't exactly remember if I added anything before it happened...
Please Help!
garrysmod/addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua
/*---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add jobs under the following line:
---------------------------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {"weapon_arc_atmcard"},
command = "citizen",
max = 0,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {"weapon_arc_atmcard", "m9k_hk45", "door_ram", "arrest_stick", "unarrest_stick"},
command = "mayor",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer)
if( ply:Team() == TEAM_MAYOR ) then
ply:changeTeam( GAMEMODE.DefaultTeam, true )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
end
end
end,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_mad_glock", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 12,
salary = 60,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.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.
Type /jailpos to set the Jail Position]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_mad_deagle", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_SWAT = DarkRP.createJob("SWAT", {
color = Color(25, 25, 170, 255),
model = {"models/player/urban.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_mp5", "stunstick", "door_ram", "weaponchecker"},
command = "swat",
max = 3,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_RCOP = DarkRP.createJob("Riot Cop", {
color = Color(25, 25, 170, 255),
model = {"models/player/swat.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker"},
command = "rcop",
max = 4,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
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 the public! You might get arrested!]],
weapons = {"weapon_arc_atmcard"},
command = "gundealer",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_BLACK = DarkRP.createJob("Black Market Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[A Black Market Dealer is the only person who can sell theif tools and some guns to other people.
Make sure you aren't caught se
No body wants to read your wall of code, put it in code tags man.
[CODE]/*---------------------------------------------------------------------------
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...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_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {"weapon_arc_atmcard"},
command = "citizen",
max = 0,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {"weapon_arc_atmcard", "m9k_hk45", "door_ram", "arrest_stick", "unarrest_stick"},
command = "mayor",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer)
if( ply:Team() == TEAM_MAYOR ) then
ply:changeTeam( GAMEMODE.DefaultTeam, true )
for k,v in pairs( player.GetAll() ) do
v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
end
end
end,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_mad_glock", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 12,
salary = 60,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.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.
Type /jailpos to set the Jail Position]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_mad_deagle", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_SWAT = DarkRP.createJob("SWAT", {
color = Color(25, 25, 170, 255),
model = {"models/player/urban.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_mp5", "stunstick", "door_ram", "weaponchecker"},
command = "swat",
max = 3,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_RCOP = DarkRP.createJob("Riot Cop", {
color = Color(25, 25, 170, 255),
model = {"models/player/swat.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.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker"},
command = "rcop",
max = 4,
salary = 80,
admin = 0,
vote = false,
hasLicense = true,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
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 the public! You might get arrested!]],
weapons = {"weapon_arc_atmcard"},
command = "gundealer",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_BLACK = DarkRP.createJob("Black Market Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[A Black Market Dealer is the only person who can sell theif tools and some guns to other people.
Make sure you aren't caught selling illegal tools or firearms to the public! You might get arrested!]],
weapons = {"weapon_arc_atmcard"},
command = "blackmarketdealer",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
CustomCheckFailMsg = "You're a mingebag, you can't use this class. Make an appeal with an admin."
})
TEAM_PRES = DarkRP.createJob("President", {
color = Color(150, 20, 20, 255),
VIPOnly = true,
model = "models/Obama/Obama.mdl",
description = [[The President of the WORLD creates laws to govern the WORLD.
If you are the WORLDPRESIDENT-QQ you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown
Sorry, you need to Log In to post a reply to this thread.