Can somebody tell me what im doing wrong?


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Spectator", {
	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/Female_07.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 = [[You are not involved in any of the mobs or the civil protections 

business and just lawy back and watch havok.]],
	weapons = {},
	command = "citizen",
	max = 0,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_POLICE = AddExtraTeam("Civil Protection", {
	color = Color(25, 25, 170, 255),
	model = "models/player/police.mdl",
	description = [[The protector of every citizen that lives in the city .
		You have the power to arrest criminals and protect innocents.
		Hit them with your arrest baton to put them in jail
		Bash them with a stunstick and they might learn better than to disobey
		the law.
		The Battering Ram can break down the door of a criminal with a warrant
		for his/her arrest.
		The Battering Ram can also unfreeze frozen props(if enabled).
		Type /wanted <name> to alert the public to this criminal
		OR go to tab and warrant someone by clicking the warrant button]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", 

"weaponchecker"},
	command = "cp",
	max = 4,
	salary = 65,
	admin = 0,
	vote = false,
	hasLicense = true
})

//Created using DeaDeye's Classmaker
TEAM_THIEF = AddExtraTeam("Thief", {
	Color = Color(255, 0, 0, 255),
	model = "models/player/phoenix.mdl",
	description = [[Your are not involved with the mob or civil protection. You raid
		with a group or alone.]],
	weapons = {"lockpick"}, 
	command = "thief", 
	max = 4, 
	salary = 50, 
	admin = 0, 
	vote = false,
	hasLicense = false

})

TEAM_THIEF2 = AddExtraTeam("Master Thief", {
	Color = Color(200, 10, 0, 255),
	model = "models/player/phoenix.mdl",
	description = [[Your are not involved with the mob or civil protection. You raid
		with a group or alone. You have a master lockpick which is much faster.
		DONATORS ONLY.]],
	weapons = {"pro_lockpick"}, 
	command = "masterthief", 
	max = 3, 
	salary = 60, 
	admin = 0, 
	vote = false,
	hasLicense = false
function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end -- The extra check 

function. Enter nil or nothing to not have an extra check
)

})

TEAM_GANG = AddExtraTeam("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/Female_07.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 Mobboss sets your agenda and you follow it or you might be punished.]],
	weapons = {},
	command = "gangster",
	max = 4,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_GUN = AddExtraTeam("Gangster Gun Dealer", {
	color = Color(123, 205, 154, 255),
	model = "models/player/monk.mdl"
	description = [[You supply guns for the gangsters and can't give weapons to anyone
		else. You must charge them the original price of the weapon or higher.]],
	weapons = {},
	command = "mobgun",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
	NeedToChangeFrom = TEAM_GANG
})

TEAM_MOB = AddExtraTeam("Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mobboss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficent crime
		organization. Lead your gang and try to take over the city]],
	weapons = {"lockpick", "unarrest_stick"},
	command = "mobboss",
	max = 1,
	salary = 70,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_GANGLEADER = AddExtraTeam("Head Gangster", {
	color = Color(25, 25, 25, 255),
	model = "models/player/urban.mdl",
	description = [[The Head Gangster is under the mobboss but controls the
		gangsters and tells them what to do and plans raids.]],
	weapons = {"lockpick", "med_kit"},
	command = "gangleader",
	max = 1,
	salary = 60,
	admin = 0,
	vote = true,
	hasLicense = false
	NeedToChangeFrom = TEAM_GANG
})


TEAM_GUN2 = AddExtraTeam("CP Gun Dealer", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[You sell guns to civil protections and can't give weapons to anyone
		else. You must charge them the original price of the weapon or higher.]],
	weapons = {},
	command = "cpgun",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
	NeedToChangeFrom = TEAM_POLICE
})

TEAM_CHIEF = AddExtraTeam("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 forces to bring law to the city
		Hit them with arrest baton to put them in jail
		Bash them with a stunstick and they might learn better than to
		disobey 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 this 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,
	NeedToChangeFrom = TEAM_POLICE
})

TEAM_MAYOR = AddExtraTeam("Mayor", {
	color = Color(150, 20, 20, 255),
	model = "models/player/breen.mdl",
	description = [[The Mayor of the city creates laws to serve the greater good
	of the people.
	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
})



})

//ADD CUSTOM TEAMS UNDER THIS LINE:

TEAM_ADMIN = AddExtraTeam("Admin on duty", Color(255, 255, 255, 255), 

"models/player/combine_super_soldier.mdl", [[Admin on duty. Admins can also roleplay but not 

on
this class]], {"weapon_real_cs_admin_weapon"}, "admin", 3, 0, 1, false, true, false)

TEAM_DB = AddExtraTeam("Hitman", Color(1, 20, 15, 255), "models/player/arctic.mdl", [[People 

hire you to assassinate for money. 
You can not pick one side you have
to perform assassinations for both mob and cp. ]], {}, "db", 2, 55, 0, false, false, false)

TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(69, 124, 88, 255), 

"models/player/combine_soldier.mdl", [[You protect the city and have more privileges than
Civil Protection. ]], {"weapon_real_cs_desert_eagle","weapon_real_cs_m4a1"}, "swat", 3, 70, 0, 

true, true, {TEAM_POLICE})

TEAM_CIA = AddExtraTeam("CIA", Color(143, 69, 235, 255), "models/player/riot.mdl", [[You work 

directly under the mayor and do whateverhe needs you to 
do]], {"weapon_real_cs_scout","weapon_real_cs_pumpshotgun", "lockpick", "weapon_real_cs_usp"}, 

 "cia", 3, 80, 0, true, true, {TEAM_POLICE})

TEAM_MOBGUARD = AddExtraTeam("Mobbosses Guards", Color(123, 155, 223, 255), 

"models/player/leet.mdl", [[Take orders directly from the mobboss and
protect him while taking over CP.]], {"weapon_real_cs_ak47", "weapon_real_cs_desert_eagle"}, 

"mobguard", 2, 60, 0, false, false, {TEAM_GANG})

TEAM_MGL = AddExtraTeam("Mob Guard Leader", Color(123, 155, 223, 255), 

"models/player/leet.mdl", [[Lead the mob guards and tell them what to do.]], 

{"weapon_real_cs_ak47", "lockpick"}, "mobguard", 2, 60, 0, false, false, {TEAM_GANG})

TEAM_SL = AddExtraTeam("S.W.A.T Leader", Color(0, 124, 14, 255), "models/player/swat.mdl", 

[[Tell the S.W.A.T what to do and try to keep
gangster activity low]], {"weapon_real_cs_desert_eagle","weapon_real_cs_galil"}, "sl", 1, 75, 

0, true, true, {TEAM_SWAT})

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

WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT 

MUCK UP!


The default door groups, can also be used as examples:
*/
AddDoorGroup("Cops, CIA, and Mayor only", TEAM_CHIEF, TEAM_CIA, 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))

WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK 

UP!

The default agenda's, can also be used as examples:
*/
AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
AddAgenda("S.W.A.T agenda", TEAM_SL, {TEAM_SWAT})
AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
AddAgenda("Gangster's agenda", TEAM_MOB2, {TEAM_GANG2})
AddAgenda("Hobo's agenda", TEAM_HL, {TEAM_HOBO})


Errors?


 [ERROR] gamemodes/darkrp/gamemode/shared.lua:112: '}' expected (to close '{' at line 100) near 'NeedToChangeFrom'
  1. unknown - gamemodes/darkrp/gamemode/shared.lua:0



TEAM_THIEF2 = AddExtraTeam("Master Thief", {
	Color = Color(200, 10, 0, 255),
	model = "models/player/phoenix.mdl",
	description = [[Your are not involved with the mob or civil protection. You raid
		with a group or alone. You have a master lockpick which is much faster.
		DONATORS ONLY.]],
	weapons = {"pro_lockpick"}, 
	command = "masterthief", 
	max = 3, 
	salary = 60, 
	admin = 0, 
	vote = false,
	hasLicense = false
function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end -- The extra check 

function. Enter nil or nothing to not have an extra check
)

})

That doesn’t seem to be correct. Replace with the following below.



TEAM_THIEF2 = AddExtraTeam("Master Thief", {
	Color = Color(200, 10, 0, 255),
	model = "models/player/phoenix.mdl",
	description = [[Your are not involved with the mob or civil protection. You raid
		with a group or alone. You have a master lockpick which is much faster.
		DONATORS ONLY.]],
	weapons = {"pro_lockpick"}, 
	command = "masterthief", 
	max = 3, 
	salary = 60, 
	admin = 0, 
	vote = false,
	hasLicense = false
function(ply) return ply:GetUserGroup() == "donator" or ply:IsAdmin() end -- The extra check 

})

That wouldn’t work either.
Do this instead:
[lua]
TEAM_THIEF2 = AddExtraTeam(“Master Thief”, {
Color = Color(200, 10, 0, 255),
model = “models/player/phoenix.mdl”,
description = [[Your are not involved with the mob or civil protection. You raid
with a group or alone. You have a master lockpick which is much faster.
DONATORS ONLY.]],
weapons = {“pro_lockpick”},
command = “masterthief”,
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetUserGroup() == “donator” or ply:IsAdmin() end
})
[/lua]

ok now im getting this error
[


ERROR] gamemodes/darkrp/gamemode/shared.lua:219: ')' expected near '{'
  1. unknown - gamemodes/darkrp/gamemode/shared.lua:0


Can someone please tell me what string i should use instead of “ply:GetUserGroup” If i use FAdmin instead of Evolve and ULX?

http://code.google.com/p/darkrp/wiki/DonatorJobs