Dark RP Jobs error? Please help

Hey i get this error with these jobs please help me out and tell me what i did wrong? Thanks



[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:249: '}' expected (to close '{' at line 236) near 'customCheck'
  1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0

[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:34: table index is nil
  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:34
   2. include - [C]:-1
    3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:111
     4. fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:119
      5. unknown - addons/ulib/lua/ulib/shared/hook.lua:183


here are the jobs



-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------*/
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 = 25,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

TEAM_POLICE = DarkRP.createJob("Police Officer", {
	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 = 80,
	admin = 0,
	vote = true,
	hasLicense = true
})

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 = 6,
	salary = 20,
	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 = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Small Arms 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 = "smallarmsdealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_GUNDEALER = 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 = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Heavy Weapon 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 = "heavyweapondealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

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 = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_CHIEF = DarkRP.createJob("Police 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", "weapon_baton", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 130,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE
})

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 = 450,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true
})
	 
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
})

TEAM_STALKER = DarkRP.createJob("Stalker", {
    color = Color(186, 184, 191, 255),
    model = "models/Eli.mdl",
    description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
    weapons = {""},
    command = "stalker", 
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_PET = DarkRP.createJob("Pet", {
    color = Color(36, 232, 14, 255),
    model = "models/headcrabclassic.mdl",
    description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
    weapons = {""},
    command = "pet", 
    max = 3,
	salary = 0,
    admin = 0,
	vote = false,
	hasLicense = true
	customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("admin") end,
    CustomCheckFailMsg = "VIP JOB. Buy VIP F4 -> Donate!",
})

TEAM_SINGER = DarkRP.createJob("Singer", {
    color = Color(242, 118, 29, 255),
    model = "models/alyx.mdl",
	description = [[You're a small time singer!
	    You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
    weapons = {""},
    command = "singer", 
    max = 1,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_BANKMANAGER = DarkRP.createJob("Bank Manager", {
    color = Color(43, 194, 217, 255),
    model = "models/Characters/Hostage_01.mdl",
    description = [[You manage the bank and make sure it doesn't get!
	    robbed. If somebody raids call the Police.]],
    weapons = {""},
    command = "banker", 
    max = 1,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_RAIDER = DarkRP.createJob("Raider", {
    color = Color(60, 61, 94, 255),
    model = "models/player/t_phoenix.mdl",
	description = [[You are a Raider!
	You can raid but only with your leader!
		Your leader must /advert raid.]],
    weapons = {"lockpick"},
	command = "raider", 
	max = 6,
	salary = 20,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_RAIDLEADER = DarkRP.createJob("Raid Leader", {
    color = Color(27, 27, 41, 255),
    model = "models/gman_high.mdl",
	description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you!
		Remember to /advert raid.]],
    weapons = {"keypad_cracker"}
	command = "raidleader", 
	max = 1,
    salary = 65,
    admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
    color = Color(103, 20, 204, 255),
    model = "models/Humans/Group01/male_03.mdl",
	description = [[You are a kidnapper.
	You can only kidnap people who are alone
		You have to /advert kidnap and you have to release them if they pay up.]],
    weapons = {""},
    command = "kidnapper", 
    max = 1,
    salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

 TEAM_LAWYER = DarkRP.createJob("Lawyer", {
    color = Color(112, 128, 230, 255),
    model = "models/Characters/hostage_03.mdl",
	description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $100 to be bailed.]],
    weapons = {""},
	command = "lawyer", 
	max = 1,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(182, 178, 184, 255),
    model = "models/odessa.mdl",
	description = [[You're a sneaky thief.
		You can break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
    weapons = {"lockpick"},
    command = "thief", 
	max = 8,
	salary = 25,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_NINJA = DarkRP.createJob("Ninja", {
    color = Color(245, 155, 25, 255),
    model = "models//player/t_arctic.mdl",
	description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
    weapons = {"grappling_hook"},
	command = "ninja", 
	max = 6,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
    color = Color(250, 96, 0, 255),
    model = "models/player/t_guerilla.mdl",
	description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
    weapons = {"grappling_hook"},
    command = "ninjamaster", 
    max = 1,
	salary = 75,
	admin = 0,
	vote = false
	hasLicense = true,
})

TEAM_AOD = DarkRP.createJob("Admin On Duty", {
    color = Color(255, 0, 0, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[You MUST be this job when dealing with a case.
		If you abuse any admin powers you will be demoted]],
    weapons = {""},
	command = "aod", 
	max = 6,
    salary = 100,
	admin = 0,
	vote = false,
	hasLicense = true
	customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
	CustomCheckFailMsg = "This job is Admin only!",
})
-- 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("Bank Staff Only", TEAM_BANKER, TEAM_POLICE, TEAM_MAYOR)


/*
--------------------------------------------------------
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})
AddAgenda("Ninja's agenda", TEAM_NINJAMASTER, {TEAM_NINJA})
AddAgenda("Raider's agenda", TEAM_RAIDLEADER, {TEAM_RAIDER})

/*
---------------------------------------------------------------------------
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.

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

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

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

/*---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------*/
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})


Dude why would you repost just ask again really?

[editline]28th February 2014[/editline]

Try this


-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------*/
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 = 25,
	admin = 0,
	vote = false,
	hasLicense = false,
})

TEAM_POLICE = DarkRP.createJob("Police Officer", {
	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 = 80,
	admin = 0,
	vote = true,
	hasLicense = true
})

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 = 6,
	salary = 20,
	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 = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Small Arms 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 = "smallarmsdealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_GUNDEALER = 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 = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Heavy Weapon 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 = "heavyweapondealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

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 = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_CHIEF = DarkRP.createJob("Police 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", "weapon_baton", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 130,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE
})

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 = 450,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true
})
	 
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
})

TEAM_STALKER = DarkRP.createJob("Stalker", {
    color = Color(186, 184, 191, 255),
    model = "models/Eli.mdl",
    description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
    weapons = {""},
    command = "stalker", 
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_PET = DarkRP.createJob("Pet", {
    color = Color(36, 232, 14, 255),
    model = "models/headcrabclassic.mdl",
    description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
    weapons = {""},
    command = "pet", 
    max = 3,
	salary = 0,
    admin = 0,
	vote = false,
	hasLicense = true:,
	customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("admin") end,
    CustomCheckFailMsg = "VIP JOB. Buy VIP F4 -> Donate!"
})

TEAM_SINGER = DarkRP.createJob("Singer", {
    color = Color(242, 118, 29, 255),
    model = "models/alyx.mdl",
	description = [[You're a small time singer!
	    You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
    weapons = {""},
    command = "singer", 
    max = 1,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_BANKMANAGER = DarkRP.createJob("Bank Manager", {
    color = Color(43, 194, 217, 255),
    model = "models/Characters/Hostage_01.mdl",
    description = [[You manage the bank and make sure it doesn't get!
	    robbed. If somebody raids call the Police.]],
    weapons = {""},
    command = "banker", 
    max = 1,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_RAIDER = DarkRP.createJob("Raider", {
    color = Color(60, 61, 94, 255),
    model = "models/player/t_phoenix.mdl",
	description = [[You are a Raider!
	You can raid but only with your leader!
		Your leader must /advert raid.]],
    weapons = {"lockpick"},
	command = "raider", 
	max = 6,
	salary = 20,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_RAIDLEADER = DarkRP.createJob("Raid Leader", {
    color = Color(27, 27, 41, 255),
    model = "models/gman_high.mdl",
	description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you!
		Remember to /advert raid.]],
    weapons = {"keypad_cracker"}
	command = "raidleader", 
	max = 1,
    salary = 65,
    admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
    color = Color(103, 20, 204, 255),
    model = "models/Humans/Group01/male_03.mdl",
	description = [[You are a kidnapper.
	You can only kidnap people who are alone
		You have to /advert kidnap and you have to release them if they pay up.]],
    weapons = {""},
    command = "kidnapper", 
    max = 1,
    salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

 TEAM_LAWYER = DarkRP.createJob("Lawyer", {
    color = Color(112, 128, 230, 255),
    model = "models/Characters/hostage_03.mdl",
	description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $100 to be bailed.]],
    weapons = {""},
	command = "lawyer", 
	max = 1,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(182, 178, 184, 255),
    model = "models/odessa.mdl",
	description = [[You're a sneaky thief.
		You can break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
    weapons = {"lockpick"},
    command = "thief", 
	max = 8,
	salary = 25,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_NINJA = DarkRP.createJob("Ninja", {
    color = Color(245, 155, 25, 255),
    model = "models//player/t_arctic.mdl",
	description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
    weapons = {"grappling_hook"},
	command = "ninja", 
	max = 6,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
    color = Color(250, 96, 0, 255),
    model = "models/player/t_guerilla.mdl",
	description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
    weapons = {"grappling_hook"},
    command = "ninjamaster", 
    max = 1,
	salary = 75,
	admin = 0,
	vote = false
	hasLicense = true,
})

TEAM_AOD = DarkRP.createJob("Admin On Duty", {
    color = Color(255, 0, 0, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[You MUST be this job when dealing with a case.
		If you abuse any admin powers you will be demoted]],
    weapons = {""},
	command = "aod", 
	max = 6,
    salary = 100,
	admin = 0,
	vote = false,
	hasLicense = true
	customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
	CustomCheckFailMsg = "This job is Admin only!",
})
-- 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("Bank Staff Only", TEAM_BANKER, TEAM_POLICE, TEAM_MAYOR)


/*
--------------------------------------------------------
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})
AddAgenda("Ninja's agenda", TEAM_NINJAMASTER, {TEAM_NINJA})
AddAgenda("Raider's agenda", TEAM_RAIDLEADER, {TEAM_RAIDER})

/*
---------------------------------------------------------------------------
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.

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

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

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

/*---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------*/
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})

no you forget comma’s after “HasLicense”

[lua]
vote = false,
hasLicense = true
customCheck = function(ply) return ply:IsUserGroup(“admin”) or ply:IsUserGroup(“superadmin”) or ply:IsUserGroup(“trialadmin”) end,
CustomCheckFailMsg = “This job is Admin only!”,
})
[/lua]

should be:
[lua]
vote = false,
hasLicense = true, – Dont forget it…
customCheck = function(ply) return ply:IsUserGroup(“admin”) or ply:IsUserGroup(“superadmin”) or ply:IsUserGroup(“trialadmin”) end,
CustomCheckFailMsg = “This job is Admin only!”,
})
[/lua]

i added the comma in what i gave him minimous

I get this now? :S




[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:247: '}' expected (to close '{' at line 235) near ':'
  1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0


Heres the jobs, again.



-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------*/
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 = 25,
	admin = 0,
	vote = false,
	hasLicense = false,
})

TEAM_POLICE = DarkRP.createJob("Police Officer", {
	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 = 80,
	admin = 0,
	vote = true,
	hasLicense = true
})

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 = 6,
	salary = 20,
	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 = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Small Arms 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 = "smallarmsdealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_GUNDEALER = 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 = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SMALLARMSDEALER = DarkRP.createJob("Heavy Weapon 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 = "heavyweapondealer",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

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 = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_CHIEF = DarkRP.createJob("Police 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", "weapon_baton", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 130,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE
})

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 = 450,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true
})
	 
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
})

TEAM_STALKER = DarkRP.createJob("Stalker", {
    color = Color(186, 184, 191, 255),
    model = "models/Eli.mdl",
    description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
    weapons = {""},
    command = "stalker", 
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_PET = DarkRP.createJob("Pet", {
    color = Color(36, 232, 14, 255),
    model = "models/headcrabclassic.mdl",
    description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
    weapons = {""},
    command = "pet", 
    max = 3,
	salary = 0,
    admin = 0,
	vote = false,
	hasLicense = true:,
	customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("admin") end,
    CustomCheckFailMsg = "VIP JOB. Buy VIP F4 -> Donate!"
})

TEAM_SINGER = DarkRP.createJob("Singer", {
    color = Color(242, 118, 29, 255),
    model = "models/alyx.mdl",
	description = [[You're a small time singer!
	    You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
    weapons = {""},
    command = "singer", 
    max = 1,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_BANKMANAGER = DarkRP.createJob("Bank Manager", {
    color = Color(43, 194, 217, 255),
    model = "models/Characters/Hostage_01.mdl",
    description = [[You manage the bank and make sure it doesn't get!
	    robbed. If somebody raids call the Police.]],
    weapons = {""},
    command = "banker", 
    max = 1,
    salary = 120,
    admin = 0,
    vote = false,
    hasLicense = true
})

TEAM_RAIDER = DarkRP.createJob("Raider", {
    color = Color(60, 61, 94, 255),
    model = "models/player/t_phoenix.mdl",
	description = [[You are a Raider!
	You can raid but only with your leader!
		Your leader must /advert raid.]],
    weapons = {"lockpick"},
	command = "raider", 
	max = 6,
	salary = 20,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_RAIDLEADER = DarkRP.createJob("Raid Leader", {
    color = Color(27, 27, 41, 255),
    model = "models/gman_high.mdl",
	description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you!
		Remember to /advert raid.]],
    weapons = {"keypad_cracker"}
	command = "raidleader", 
	max = 1,
    salary = 65,
    admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
    color = Color(103, 20, 204, 255),
    model = "models/Humans/Group01/male_03.mdl",
	description = [[You are a kidnapper.
	You can only kidnap people who are alone
		You have to /advert kidnap and you have to release them if they pay up.]],
    weapons = {""},
    command = "kidnapper", 
    max = 1,
    salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

 TEAM_LAWYER = DarkRP.createJob("Lawyer", {
    color = Color(112, 128, 230, 255),
    model = "models/Characters/hostage_03.mdl",
	description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $100 to be bailed.]],
    weapons = {""},
	command = "lawyer", 
	max = 1,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(182, 178, 184, 255),
    model = "models/odessa.mdl",
	description = [[You're a sneaky thief.
		You can break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
    weapons = {"lockpick"},
    command = "thief", 
	max = 8,
	salary = 25,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_NINJA = DarkRP.createJob("Ninja", {
    color = Color(245, 155, 25, 255),
    model = "models//player/t_arctic.mdl",
	description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
    weapons = {"grappling_hook"},
	command = "ninja", 
	max = 6,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
    color = Color(250, 96, 0, 255),
    model = "models/player/t_guerilla.mdl",
	description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
    weapons = {"grappling_hook"},
    command = "ninjamaster", 
    max = 1,
	salary = 75,
	admin = 0,
	vote = false
	hasLicense = true,
})

TEAM_AOD = DarkRP.createJob("Admin On Duty", {
    color = Color(255, 0, 0, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[You MUST be this job when dealing with a case.
		If you abuse any admin powers you will be demoted]],
    weapons = {""},
	command = "aod", 
	max = 6,
    salary = 100,
	admin = 0,
	vote = false,
	hasLicense = true,
	customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
	CustomCheckFailMsg = "This job is Admin only!",
})
-- 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("Bank Staff Only", TEAM_BANKER, TEAM_POLICE, TEAM_MAYOR)


/*
--------------------------------------------------------
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})
AddAgenda("Ninja's agenda", TEAM_NINJAMASTER, {TEAM_NINJA})
AddAgenda("Raider's agenda", TEAM_RAIDLEADER, {TEAM_RAIDER})

/*
---------------------------------------------------------------------------
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.

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

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

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

/*---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------*/
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})


Line 247:


hasLicense = true:,

Change to


hasLicense = true,

You should seriously look around the line number it’s telling you first before asking.

I tried telling him before he doesnt listen unfortunately he wants everyone to do it for him.