Script Error DarkRP Job Section

Can someone please help me out? I’d gladly appreciate it.

//I guess I messed something up in the coding of the DarkRP/gamemode/config/jobrelated.lua

Error Code On Server Startup:



["steamname"|2|STEAMID"] Lua Error:
[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:453: table index is nil
1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:453
2. include - [C]:-1
3. unknown - gamemodes/darkrp/gamemode/cl_init.lua:36

Jobrelated.lua:


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
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 = [[Society: Citizen
Purpose: A Regular Roleplaying Class, An Every Day Citizen.
Can Raid And With?: No.
Extra Information: Default Class.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"flipoff"},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
	color = Color(25, 25, 170, 255),
	model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
	description = [[Society: Government
Purpose: You have the power to arrest criminals and protect innocents.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 7,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
	color = Color(20, 20, 255, 255),
	model = "models/player/combine_soldier_prisonguard.mdl",
	description = [[Society: Government
Purpose: Coordinate the police force to enforce law in the city.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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. 
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The Chief is the leader of the Civil Protection unit.]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_SWAT = AddExtraTeam("SWAT", Color(35, 0, 255, 255), "models/player/btb3.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
		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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"arrest_stick","unarrest_stick","weapon_deagle2","stunstick","door_ram","weaponchecker","weapon_mp52"}, "swat", 6, 70, 0, true, true, false)

TEAM_MARKSMAN = AddExtraTeam("SWAT Marksman", Color(0, 153, 255, 255), "models/jessev92/player/military/cod4_sniper.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"ls_sniper","door_ram","arrest_stick","unarrest_stick","weaponchecker","stunstick"}, "marksman", 2, 50, 0, true, true, false)


TEAM_GUN = DarkRP.createJob("Gun Dealer", {
	color = Color(255, 102, 0, 255),
	model = "models/player/monk.mdl",
	description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {},
	command = "gundealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
	color = Color(204, 102, 0, 255),
	model = "models/player/monk.mdl",
	description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {},
	command = "bmddealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BUILDER = AddExtraTeam("Builder", Color(153, 102, 51, 255), "models/player/blockdude.mdl", [[Society: Construction
Purpose: Allowed To Build At The Builder's Area (At Beach),
Can Raid And With?: No.
Extra Information: Only Can Block Off Ending Of Tunnel And Passed Tunnel Area (Beach) At Building Area
Allowed To Let People Own/Rent Buildings In The Area.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {}, "builder", 3, 50, 0, false, false, false)

TEAM_MEDIC = DarkRP.createJob("Medic", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[Society: Government
Purpose: A Medic, Who Can Base & Protect Houses/Cities.
Can Raid And With?: No.
Extra Information: CANNOT BE BROUGHT TO RAIDS!
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"med_kit"},
	command = "medic",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})


TEAM_MAYOR = DarkRP.createJob("Mayor", {
	color = Color(204, 51, 255, 255),
	model = "models/player/breen.mdl",
	description = [[Society: Government (Leader)
Purpose: The Mayor of the city creates laws to govern the city.
Can Raid And With?: No.
Extra Information: If you are the mayor you may create and accept warrants (with valid reasons).
	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
	The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"weapon_deagle2", "stunstick", "weaponchecker", "unarrest_stick"},
	command = "mayor",
	max = 1,
	salary = 85,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true,
	help = {
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
		"Type /lockdown to initiate a lockdown",
		"Type /unlockdown to end a lockdown",
		"Type /placelaws to place a screen containing the laws.",
		"Type /addlaw and /removelaw to edit the laws."
	}
})

TEAM_ASSISTANT = AddExtraTeam("Mayor's Assistant", Color(255, 153, 255, 255), "models/player/leet.mdl", [[Society: Government
Purpose: Protects The Mayor At All Costs.
Can Raid And With?: No.
Extra Information: Must Be With The Mayor At ALL Times!
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"weaponchecker","weapon_deagle2","weapon_mp52","stunstick"}, "assistant", 1, 75, 0, true, true, false)

TEAM_DJ = DarkRP.createJob("DJ", {
	color = Color(255, 0, 153, 255),
	model = {
		"models/player/daftpunk/daft_silver.mdl",
		"models/player/daftpunk/daft_gold.mdl"},
	description = [[Society: Citizen
Purpose: To Setup A {DJ Base}, And Play Music Through Microphone, Stereomix, HL2DJ, etc. {ONLY IN YOUR PRIVATE BASE, NOT IN PUBLIC.}
Can Raid And With?: No.
Extra Information: You Could Be Banned/Demoted From This Job, If Not Using It Right, As In Playing
Stupid Music,
Annoying Sounds,
Misusing/Complications In-General {Background Noise, Echoing, etc.}.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "dj",
	max = 1,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_PET = AddExtraTeam("Pet", 
Color(153, 102, 0, 255), 
"models/player/danboard.mdl", [[Society: Animals
Purpose: To Be A Pet Of Any Person Desired.
Can Raid And With?: No.
Extra Information: You Can Help Your Master, If Master Is Getting Attacked/Raided/Mugged/Killed.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], 
{}, 
"pet", 4, 5, 0, false, false, false)

TEAM_HOBO = DarkRP.createJob("Hobo", {
	color = Color(102, 51, 0, 255),
	model = "models/player/corpse1.mdl",
	description = [[Society: Homeless
Purpose: To Beg For Money. To Be Homeless.
Can Raid And With?: No.
Extra Information: The Lowest Member Of Society. Everybody Laughs At You.
You Have No Home. You Cannot Own Any Guns.
You Are Allowed To Build At Sidewalk, Or Anywhere Else, 
CANNOT Build In Streets, Tunnels, Infront Of Doors,
CANNOT Block Doors, Tunnels, Streets, Walkways, Or Etc..
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {"weapon_bugbait"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = true
})

TEAM_MOB = DarkRP.createJob("Mob Boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[Society: Regular Mob (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Mob Members, Noone Else.
Extra Information: Have To Be Present During All Mob Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"lockpick", "unarrest_stick", "inventory"},
	command = "mobboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = {
		"As the Mob boss, you decide what you want the other Gangsters to do.",
		"You get an Unarrest Stick which you can use to break people out of jail.",
		"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
	}
})

TEAM_GANG = DarkRP.createJob("Mob Member", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl",
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[Society: Regular Mob
Purpose: To Associate & Fulfill Your Boss' Jobs, Raids, Base, Etc.
Can Raid And With?: Yes, Only With Other Mob Members And Mob Boss, Noone Else.
Extra Information: You Must Listen To Your Boss At All Times.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "mobmember",
	max = 7,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_HALOLEADER = AddExtraTeam("Halo Mob Boss", Color(102, 255, 51, 255), "models/player/halo3elite.mdl", [[Society: Halo Mob (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Halo Mob Members, Noone Else.
Extra Information: Have To Be Present During All Hell Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"lockpick","unarrest_stick"}, "haloleader", 1, 60, 0, false, false, false)

TEAM_HALOMEMBER = DarkRP.createJob("Halo Mob Member", {
	color = Color(0, 102, 0, 255),
	model = {
		"models/player/halo3/spartan_gold.mdl",
		"models/player/halo3/spartan_blue.mdl",
		"models/player/halo3/spartan_green.mdl",
		"models/player/halo3/spartan_white.mdl",	
		"models/player/halo3/spartan_red.mdl",
		"models/player/halo3/spartan_pink.mdl"},
	description = [[Society: Halo Mob
Purpose: To Associate & Fulfill Your Boss' Jobs, Raids, Base, Etc.
Can Raid And With?: Yes, Only With Other Hell Members And Hell Boss, Noone Else.
Extra Information: You Must Listen To Your Boss At All Times.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "halomember",
	max = 7,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_PMLEADER = AddExtraTeam("Private Military Leader", Color(255, 0, 0, 255), "models/humans/soap.mdl", [[Society: Private Military (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Halo Mob Members, Noone Else.
Extra Information: Have To Be Present During All Hell Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"lockpick","unarrest_stick"}, "pmleader", 1, 85, 0, false, false, false)

TEAM_PMMEMBER = DarkRP.createJob("Private Military Member", {
	color = Color(153, 0, 0, 255),
	model = {
		"models/mw2guy/diver/ghost.mdl",
		"models/humans/yuri.mdl",
		"models/mw2guy/diver/diver_full.mdl",
		"models/mw2guy/diver/diver_03.mdl",	
		"models/mw2guy/diver/diver_01.mdl",
		"models/mw2guy/riot/riot_us.mdl",
		"models/mw2guy/riot/riot_ru.mdl",
		"models/mw2guy/riot/juggernaut.mdl"},
	description = [[Society: Private Military
Purpose: To Get Hired To Raid With Your Fellow Military Members And Leader.
Can Raid And With?: Yes(With Exceptions), You Can Only Raid With Fellow Members & Leader, (IF HIRED!!).
Extra Information: You Must Try To Fulfill Your Contract Of Raiding. Basing Is Allowed At Anytime. 
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "pmmember",
	max = 7,
	salary = 70,
	admin = 0,
	vote = false,
	hasLicense = false
})

-- 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 only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", 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_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,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)

This is a common issue with people who just copy & paste the code; the example code for doing CP tables is wrong. This thread might help you: http://forum.facepunch.com/showthread.php?t=1303956

I couldn’t thank you more than much man. Thanks for the quick response in helping me.
1 problem, where would shared.lua be located in, as there are multiple results in the DarkRP folder, on fixing behalf the problem of putting GM.CivilProtection into an earlier executed file, such as shared.lua…

Actually, it was changed since 2.4.5 (the thread was from DarkRP 2.4.5) and should work fine.

Try this code


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
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 = [[Society: Citizen
Purpose: A Regular Roleplaying Class, An Every Day Citizen.
Can Raid And With?: No.
Extra Information: Default Class.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"flipoff"},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
	color = Color(25, 25, 170, 255),
	model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
	description = [[Society: Government
Purpose: You have the power to arrest criminals and protect innocents.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 7,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
	color = Color(20, 20, 255, 255),
	model = "models/player/combine_soldier_prisonguard.mdl",
	description = [[Society: Government
Purpose: Coordinate the police force to enforce law in the city.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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. 
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The Chief is the leader of the Civil Protection unit.]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_SWAT = AddExtraTeam("SWAT", Color(35, 0, 255, 255), "models/player/btb3.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
		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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"arrest_stick","unarrest_stick","weapon_deagle2","stunstick","door_ram","weaponchecker","weapon_mp52"}, "swat", 6, 70, 0, true, true, false)

TEAM_MARKSMAN = AddExtraTeam("SWAT Marksman", Color(0, 153, 255, 255), "models/jessev92/player/military/cod4_sniper.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"ls_sniper","door_ram","arrest_stick","unarrest_stick","weaponchecker","stunstick"}, "marksman", 2, 50, 0, true, true, false)


TEAM_GUN = DarkRP.createJob("Gun Dealer", {
	color = Color(255, 102, 0, 255),
	model = "models/player/monk.mdl",
	description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {},
	command = "gundealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
	color = Color(204, 102, 0, 255),
	model = "models/player/monk.mdl",
	description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {},
	command = "bmddealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_BUILDER = AddExtraTeam("Builder", Color(153, 102, 51, 255), "models/player/blockdude.mdl", [[Society: Construction
Purpose: Allowed To Build At The Builder's Area (At Beach),
Can Raid And With?: No.
Extra Information: Only Can Block Off Ending Of Tunnel And Passed Tunnel Area (Beach) At Building Area
Allowed To Let People Own/Rent Buildings In The Area.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {}, "builder", 3, 50, 0, false, false, false)

TEAM_MEDIC = DarkRP.createJob("Medic", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[Society: Government
Purpose: A Medic, Who Can Base & Protect Houses/Cities.
Can Raid And With?: No.
Extra Information: CANNOT BE BROUGHT TO RAIDS!
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"med_kit"},
	command = "medic",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})


TEAM_MAYOR = DarkRP.createJob("Mayor", {
	color = Color(204, 51, 255, 255),
	model = "models/player/breen.mdl",
	description = [[Society: Government (Leader)
Purpose: The Mayor of the city creates laws to govern the city.
Can Raid And With?: No.
Extra Information: If you are the mayor you may create and accept warrants (with valid reasons).
	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
	The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"weapon_deagle2", "stunstick", "weaponchecker", "unarrest_stick"},
	command = "mayor",
	max = 1,
	salary = 85,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true,
	help = {
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
		"Type /lockdown to initiate a lockdown",
		"Type /unlockdown to end a lockdown",
		"Type /placelaws to place a screen containing the laws.",
		"Type /addlaw and /removelaw to edit the laws."
	}
})

TEAM_ASSISTANT = AddExtraTeam("Mayor's Assistant", Color(255, 153, 255, 255), "models/player/leet.mdl", [[Society: Government
Purpose: Protects The Mayor At All Costs.
Can Raid And With?: No.
Extra Information: Must Be With The Mayor At ALL Times!
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"weaponchecker","weapon_deagle2","weapon_mp52","stunstick"}, "assistant", 1, 75, 0, true, true, false)

TEAM_DJ = DarkRP.createJob("DJ", {
	color = Color(255, 0, 153, 255),
	model = {
		"models/player/daftpunk/daft_silver.mdl",
		"models/player/daftpunk/daft_gold.mdl"},
	description = [[Society: Citizen
Purpose: To Setup A {DJ Base}, And Play Music Through Microphone, Stereomix, HL2DJ, etc. {ONLY IN YOUR PRIVATE BASE, NOT IN PUBLIC.}
Can Raid And With?: No.
Extra Information: You Could Be Banned/Demoted From This Job, If Not Using It Right, As In Playing
Stupid Music,
Annoying Sounds,
Misusing/Complications In-General {Background Noise, Echoing, etc.}.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "dj",
	max = 1,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_PET = AddExtraTeam("Pet", 
Color(153, 102, 0, 255), 
"models/player/danboard.mdl", [[Society: Animals
Purpose: To Be A Pet Of Any Person Desired.
Can Raid And With?: No.
Extra Information: You Can Help Your Master, If Master Is Getting Attacked/Raided/Mugged/Killed.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], 
{}, 
"pet", 4, 5, 0, false, false, false)

TEAM_HOBO = DarkRP.createJob("Hobo", {
	color = Color(102, 51, 0, 255),
	model = "models/player/corpse1.mdl",
	description = [[Society: Homeless
Purpose: To Beg For Money. To Be Homeless.
Can Raid And With?: No.
Extra Information: The Lowest Member Of Society. Everybody Laughs At You.
You Have No Home. You Cannot Own Any Guns.
You Are Allowed To Build At Sidewalk, Or Anywhere Else, 
CANNOT Build In Streets, Tunnels, Infront Of Doors,
CANNOT Block Doors, Tunnels, Streets, Walkways, Or Etc..
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
	weapons = {"weapon_bugbait"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = true
})

TEAM_MOB = DarkRP.createJob("Mob Boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[Society: Regular Mob (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Mob Members, Noone Else.
Extra Information: Have To Be Present During All Mob Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {"lockpick", "unarrest_stick", "inventory"},
	command = "mobboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = {
		"As the Mob boss, you decide what you want the other Gangsters to do.",
		"You get an Unarrest Stick which you can use to break people out of jail.",
		"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
	}
})

TEAM_GANG = DarkRP.createJob("Mob Member", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl",
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[Society: Regular Mob
Purpose: To Associate & Fulfill Your Boss' Jobs, Raids, Base, Etc.
Can Raid And With?: Yes, Only With Other Mob Members And Mob Boss, Noone Else.
Extra Information: You Must Listen To Your Boss At All Times.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "mobmember",
	max = 7,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_HALOLEADER = AddExtraTeam("Halo Mob Boss", Color(102, 255, 51, 255), "models/player/halo3elite.mdl", [[Society: Halo Mob (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Halo Mob Members, Noone Else.
Extra Information: Have To Be Present During All Hell Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"lockpick","unarrest_stick"}, "haloleader", 1, 60, 0, false, false, false)

TEAM_HALOMEMBER = DarkRP.createJob("Halo Mob Member", {
	color = Color(0, 102, 0, 255),
	model = {
		"models/player/halo3/spartan_gold.mdl",
		"models/player/halo3/spartan_blue.mdl",
		"models/player/halo3/spartan_green.mdl",
		"models/player/halo3/spartan_white.mdl",	
		"models/player/halo3/spartan_red.mdl",
		"models/player/halo3/spartan_pink.mdl"},
	description = [[Society: Halo Mob
Purpose: To Associate & Fulfill Your Boss' Jobs, Raids, Base, Etc.
Can Raid And With?: Yes, Only With Other Hell Members And Hell Boss, Noone Else.
Extra Information: You Must Listen To Your Boss At All Times.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "halomember",
	max = 7,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_PMLEADER = AddExtraTeam("Private Military Leader", Color(255, 0, 0, 255), "models/humans/soap.mdl", [[Society: Private Military (Leader)
Purpose: To Be A Good Mob Leader!
Can Raid And With?: Yes, Only Halo Mob Members, Noone Else.
Extra Information: Have To Be Present During All Hell Raiding.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]], {"lockpick","unarrest_stick"}, "pmleader", 1, 85, 0, false, false, false)

TEAM_PMMEMBER = DarkRP.createJob("Private Military Member", {
	color = Color(153, 0, 0, 255),
	model = {
		"models/mw2guy/diver/ghost.mdl",
		"models/humans/yuri.mdl",
		"models/mw2guy/diver/diver_full.mdl",
		"models/mw2guy/diver/diver_03.mdl",	
		"models/mw2guy/diver/diver_01.mdl",
		"models/mw2guy/riot/riot_us.mdl",
		"models/mw2guy/riot/riot_ru.mdl",
		"models/mw2guy/riot/juggernaut.mdl"},
	description = [[Society: Private Military
Purpose: To Get Hired To Raid With Your Fellow Military Members And Leader.
Can Raid And With?: Yes(With Exceptions), You Can Only Raid With Fellow Members & Leader, (IF HIRED!!).
Extra Information: You Must Try To Fulfill Your Contract Of Raiding. Basing Is Allowed At Anytime. 
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
	weapons = {},
	command = "pmmember",
	max = 7,
	salary = 70,
	admin = 0,
	vote = false,
	hasLicense = false
})

-- 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 only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", 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_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,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)

Sorry for the complications buddy, I replaced that code into jobrelated.lua, restarted server, still getting the Lua error. I’m clearly not the greatest coder, I appreciate all you help once again!

This may sound dumb, but since when were the job files called jobrelated.lua? I thought they were shared.lua or jobs.lua?

No clue lol, would it make a difference if I changed it? Its a darkrp 2.5 core job content for the gamemode, should I just delete it all and put the jobrelated.lua into the darkrp modificationloader job.lua?

No. Now try this code (backup your other code first)


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
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 = {},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

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 = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 4,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_GANG = DarkRP.createJob("Gangster", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl",
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[The lowest person of crime.
		A gangster generally works for the Mobboss who runs the crime family.
		The Mob boss sets your agenda and you follow it or you might be punished.]],
	weapons = {},
	command = "gangster",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mob boss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficient crime organization.
		He has the ability to break into houses by using a lockpick.
		The Mob boss posesses the ability to unarrest you.]],
	weapons = {"lockpick", "unarrest_stick"},
	command = "mobboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = {
		"As the Mob boss, you decide what you want the other Gangsters to do.",
		"You get an Unarrest Stick which you can use to break people out of jail.",
		"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
	}
})

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 = {},
	command = "gundealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[With your medical knowledge you work to restore players to full health.
		Without a medic, people cannot be healed.
		Left click with the Medical Kit to heal other players.
		Right click with the Medical Kit to heal yourself.]],
	weapons = {"med_kit"},
	command = "medic",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

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 = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

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 = {},
	command = "mayor",
	max = 1,
	salary = 85,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true,
	help = {
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
		"Type /lockdown to initiate a lockdown",
		"Type /unlockdown to end a lockdown",
		"Type /placelaws to place a screen containing the laws.",
		"Type /addlaw and /removelaw to edit the laws."
	}
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
	color = Color(80, 45, 0, 255),
	model = "models/player/corpse1.mdl",
	description = [[The lowest member of society. Everybody laughs at you.
		You have no home.
		Beg for your food and money
		Sing for everyone who passes to get money
		Make your own wooden home somewhere in a corner or outside someone else's door]],
	weapons = {"weapon_bugbait"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = 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 only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", 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_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,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)


Works alot man, thanks so much!!

Actually, all I did was give you the default code. I just noticed that Falco now has a darkrpmodification Github to use for adding custom items. Download it and follow the instructions. Add all your custom jobs to jobs.lua here: https://github.com/FPtje/darkrpmodification

Is it just me that gets irritated every time someone posts a question here?

http://puu.sh/5HGzO

http://puu.sh/5HGAj

http://puu.sh/5HGBd

Does this just go over everyone’s head?

http://puu.sh/5R6aV.png

Mod can take care of it. If it irritates you so much, report the post.