Lua error can somebody help!

I keep getting lua error out ive looked over and over this script but i cant seem to find it i figure an extra set of fresh eyes would help can somebody look over this for me it was be awesome if somebody did


/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------

This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
	Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:
<TODO: INSERT URL HERE>

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields


Add jobs under the following line:
---------------------------------------------------------------------------*/
/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_MAYOR = AddExtraTeam("Mayor", Color(150, 20, 20, 255), "models/player/breen.mdl", [[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]], {}, "mayor", 1, 85, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)

TEAM_HOBO = AddExtraTeam("Hobo", {
        color = Color(80, 45, 0, 255),
        model = "models/player/corpse1.mdl",
        description = [[The lowest member of society. All people that see you laugh.
                You have no home.
                Beg for your food and money
                Sing for everyone who passes to get money
                Make your own wooden home.]],
        weapons = {"weapon_bugbait"},
        command = "hobo",
        max = 5,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
})

TEAM_CITIZEN = AddExtraTeam("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_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,
})

TEAM_POLICE = AddExtraTeam("Civil Protection", {
        color = Color(25, 25, 170, 255),
        model = {
				"models/humans/nypd1940/male_01.mdl", 
				"models/humans/nypd1940/male_02.mdl", 
				"models/humans/nypd1940/male_03.mdl", 
				"models/humans/nypd1940/male_04.mdl", 
				"models/humans/nypd1940/male_05.mdl", 
				"models/humans/nypd1940/male_06.mdl", 
				"models/humans/nypd1940/male_07.mdl", 
				"models/humans/nypd1940/male_08.mdl", 
				"models/humans/nypd1940/male_09.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 and type /warrant to request a warrant.]],
        weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
        command = "cp",
        max = 4,
        salary = 65,
        admin = 0,
        vote = true,
        hasLicense = true,
})

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. The Gangster Leader sets your agenda and you follow it or you might be punished.
                A gangster generally works for the Gangster Leader who runs the crime family.
                The Gangster Leader sets your agenda and you follow it or you might be punished.]],
        weapons = {},
        command = "gangster",
        max = 5,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false,
})

TEAM_GANGSTERLEADER = AddExtraTeam("Gangster Leader", {
        color = Color(25, 25, 25, 255),
        model = "models/player/gman_high.mdl",
        description = [[The Gangster Leader is the boss of the gangsters in the city.
			 With his power he coordinates the gangsters and forms an efficent crime
			 organization.]],
        weapons = {},
        command = "gangleader",
        max = 1,
        salary = 60,
        admin = 0,
        vote = true,
        hasLicense = false,
		NeedToChangeFrom = TEAM_GANG,
        CustomCheckFailMsg = "You need to become a gangster first."
})

TEAM_LIGHTGUNDEALER = AddExtraTeam("Light Arms Dealer", {
        color = Color(255, 140, 0, 255),
        model = "models/minson97/bo2/hudson/hudson_commando.mdl",
        description = [[A Light Gundealer is responsible for selling
				light arms to the public.
				/Buyshipment <name> to Buy a weapon shipment
				/Buygunlab to Buy a gunlab that spawns P228 pistols]],
        weapons = {},
        command = "lightdealer",
        max = 3,
        salary = 45,
        admin = 0,
        vote = true,
        hasLicense = false,
})

TEAM_HEAVYGUNDEALER = AddExtraTeam("Heavy Arms Dealer", {
        color = Color(255, 140, 0, 255),
        model = "models/jessev92/player/military/cod4_sniper.mdl",
        description = [[A Heavy Arms Dealer is responsible
				for selling heavy weapons to the public.
				/Buyshipment <name> to buy a weapon shipment.
				/Buygunlab to buy a gunlab that spawns P228 pistols.]],
        weapons = {},
        command = "heavydealer",
        max = 2,
        salary = 45,
        admin = 0,
        vote = true,
        hasLicense = false,
})

TEAM_DOCTOR = AddExtraTeam("Doctor", {
        color = Color(47, 79, 79, 255),
        model = "models/player/kleiner.mdl",
        description = [[If you are a medic you MUST heal anyone who asks.
				If you fail to do so they have the right to demote you.
				You are allowed to make them pay for each heal.
				(Try to make the prices reasonable)]],
        weapons = {"med_kit"},
        command = "doctor",
        max = 2,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false,
})

TEAM_POLICECHIEF = AddExtraTeam("Civil Protection Chief", {
        color = Color(20, 20, 255, 255),
        model = "models/player/elispolice/police.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 /warrant <name> to create a warrant on someone.]],
        weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
        command = "chief",
        max = 1,
        salary = 65,
        admin = 0,
        vote = true,
        hasLicense = true,
		NeedToChangeFrom = TEAM_POLICE,
		CustomCheckFailMsg = "You need to be Civil Protection first.",
})

TEAM_ADMIN = AddExtraTeam( "Admin on Duty!", Color( 128, 0, 128, 255 ), {"models/player/harry_potter.mdl", "models/player/sumario_galaxy.mdl", "models/player/suluigi_galaxy.mdl", "models/player/nuggets.mdl", "models/player/teslapower.mdl", "models/player/sunabouzu.mdl", "models/player/shaun.mdl", "models/player/security_suit.mdl", "models/player/scarecrow.mdl", "models/player/zelda.mdl", "models/player/yoshi.mdl", "models/player/zerop.mdl", "models/player/zoey.mdl", "models/player/subzero.mdl", "models/player/skeleton.mdl", "models/player/scorpion.mdl", "models/player/samusz.mdl", "models/player/rorschach.mdl", "models/player/roman.mdl", "models/player/rayman.mdl", "models/player/niko.mdl", "models/player/midna.mdl", "models/player/mart.mdl", "models/player/macdguy.mdl", "models/player/leon.mdl", "models/player/knight.mdl", "models/player/jawa.mdl", "models/player/jack_sparrow.mdl", "models/player/hunter.mdl", "models/player/gordon.mdl", "models/player/gmt_shared.mdl", "models/player/gmen.mdl", "models/player/foohysaurusrex.mdl", "models/player/faith.mdl", "models/player/doomguy.mdl", "models/player/dishonored_assassin1.mdl", "models/player/clopsy.mdl", "models/player/chris.mdl", "models/player/chewbacca.mdl", "models/player/blockdude.mdl", "models/player/azuisleet1.mdl", "models/player/aphaztech.mdl", "models/player/altair.mdl", "models/player/billymays.mdl"}, [[You Administrate the Server]], {"keys", "pocket", "weapon_keypadchecker", "gmod_tool", "arrest_stick", "unarrest_stick"}, "admin", 3,300,1, false)

TEAM_HITMAN = AddExtraTeam("Hitman", {
        color = Color(0, 0, 255, 255),
        model = {
				"models/player/archer.mdl", 
				"models/player/kestrel.mdl",
				}
        description = [[You whack those unwanted guests!  You are NOT allowed to take
		hits on other hitmen.]],
        weapons = {"weapon_Deagle2"},
        command = "hitman",
        max = 2,
        salary = 50,
        admin = 0,
        vote = true,
        hasLicense = false,
})

TEAM_DRUG = AddExtraTeam("Drug Dealer", {
        color = Color(153, 51, 0, 255),
        model = "models/player/swanky/lieutenanttibbles.mdl",
        description = [[You sell Drugs to people!]],
        weapons = {},
        command = "drugdealer",
        max = 2,
        salary = 45,
        admin = 0,
        vote = true,
        hasLicense = false,
})

TEAM_GUARD = AddExtraTeam("Security Guard", {
        color = Color(0, 204, 0, 255),
        model = {
				"models/player/guard_pack/guard_01.mdl",
				"models/player/guard_pack/guard_02.mdl",
				"models/player/guard_pack/guard_03.mdl",
				"models/player/guard_pack/guard_04.mdl",
				"models/player/guard_pack/guard_05.mdl",
				"models/player/guard_pack/guard_06.mdl",
				"models/player/guard_pack/guard_07.mdl",
				"models/player/guard_pack/guard_08.mdl",
				"models/player/guard_pack/guard_09.mdl",
				}
        description = [[You get hired by someone to protect them. You
				can't follow orders to RDM someone. You only
				protect the shop or the player. (From hits or
				raids etc.)]],
        weapons = {},
        command = "guard",
        max = 4,
        salary = 60,
        admin = 0,
        vote = false,
        hasLicense = true,
})

TEAM_THIEF = AddExtraTeam("Thief", {
        color = Color(255, 102, 51, 255),
        model = "models/kane_robber_masked.mdl",
        description = [[As a theif you must raid and follow all the rules
				to do so.]],
        weapons = {"Weapon_lockpick","keypad_cracker"},
        command = "thief",
        max = 4,
        salary = 50,
        admin = 0,
        vote = true,
        hasLicense = false,
})

TEAM_EXPERTTHIEF = AddExtraTeam("Expert Thief", {
        color = Color(255, 51, 0, 255),
        model = "models/lynch_robber_masked.mdl",
        description = [[As an Expert Theif you must raid and follow all the
				rules to do so. Your lockpicks and keypad crackers
				will be more advanced than the normal theives'.]],
        weapons = {"fastlockpick","fastkeypadcracker"},
        command = "expertthief",
        max = 3,
        salary = 60,
        admin = 0,
        vote = true,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_EXPERTGUARD = AddExtraTeam("Expert Guard", {
        color = Color(51, 102, 255, 255),
        model = "models/player/corvo.mdl",
				"models/player/arnold_schwarzenegger.mdl",
        description = [[You get hired by someone to protect them. You
				can't follow orders to RDM someone. You only
				protect the shop or the player from hits and raids.]],
        weapons = {"Weapon_real_cs_p90","weapon_deagle2"},
        command = "expertguard",
        max = 2,
        salary = 100,
        admin = 0,
        vote = true,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_EXPERTHITMAN = AddExtraTeam("Counter Hitman", {
        color = Color(0, 153, 255, 255),
        model = {
				"models/player/nookyava/nookz.mdl",
				"models/player/solid_snake.mdl",
				}
        description = [[As a counter hitman, you have the ability
				to take hits on other hitmen, and with a larger arsenal at that.]],
        weapons = {"m9k_demascus", "m9k_m92baretta"},
        command = "experthitman",
        max = 2,
        salary = 100,
        admin = 0,
        vote = true,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_EXPERTCP = AddExtraTeam("Super Civil Protection", {
        color = Color(0, 0, 255, 255),
        model = "models/player/slow/robocop/slow.mdl",
        description = [[You are the top dog of protection. As a super
				civil protector you protect the mayor, the city,
				and other government officials.]],
        weapons = {"arrest_stick","unarrest_stick","weapon_glock2","stunstick","door_ram","weaponchecker","weapon_real_cs_p90","weapon_real_cs_awp","weapon_deagle2"},
        command = "supercop",
        max = 2,
        salary = 70,
        admin = 0,
        vote = true,
        hasLicense = true,
		NeedToChangeFrom = TEAM_POLICECHIEF,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate for Gold Membership and become a Police Chief in order to become a super CP."
})

TEAM_BLACKMARKETDEALER = AddExtraTeam("Black Market Dealer", {
        color = Color(153, 153, 0, 255),
        model = "models/minson97/bo2/hudson/hudson_afghanistan.mdl",
        description = [[You sell your entities to the people. If you are
				the only Black Market dealer you must sell to
				anyone. You must make the prices reasonable.]],
        weapons = {},
        command = "blackmarketdealer",
        max = 2,
        salary = 100,
        admin = 0,
        vote = true,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_BANKER = AddExtraTeam("Banker", {
        color = Color(255, 204, 51, 255),
        model = "models/player/macdguy.mdl",
        description = [[A banker is allowed to
				own money printers as long as he loans out money.  If a person does not pay the banker
				back within a set amount of time, the banker is allowed to go to that person's house
				and collect payment...by force if necessary.  If a player leaves the server before paying, he is subject
				to immediate disciplinary action by our admins.]],
        weapons = {},
        command = "banker",
        max = 1,
        salary = 200,
        admin = 0,
        vote = true,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_EXPERTSTARWARSCLONES = AddExtraTeam("Republic Clone", {
        color = Color(0, 255, 0, 255),
        model = {
				"models/player/sgg/starwars/clonetrooper.mdl",
				"models/player/sgg/starwars/clonetrooper_41st.mdl",
				"models/player/sgg/starwars/clonetrooper_212nd.mdl",
				"models/player/sgg/starwars/clonetrooper_327th.mdl",
				"models/player/sgg/starwars/clonetrooper_501st.mdl",
				"models/player/sgg/starwars/clonetrooper_arc_defaut.mdl",
				"models/player/sgg/starwars/clonetrooper_pilot.mdl",
				"models/player/sgg/starwars/clonetrooper_dirty.mdl",
				"models/player/sgg/starwars/clonetrooper_marine.mdl",
				}
        description = [[You are a member of the battle hardened clones.
				Your objective is to hunt and destroy any members of the Seperatist Droids.  
				RDM principles apply when not fighting droids.]],
        weapons = {"weapon_swrp_cloneblaster", "weapon_swrp_dc15pistol"},
        command = "clone",
        max = 4,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_HOBO = EXPERTSTARWARSDROIDS("Seperatist Droid", {
        color = Color(255, 0, 255, 255),
        model = {
				"models/player/sgg/starwars/battledroid.mdl",
				"models/player/sgg/starwars/battledroid_geo.mdl",
				"models/player/sgg/starwars/battledroid_pilot.mdl",
				"models/player/sgg/starwars/battledroid_security.mdl",
				}
        description = [[You are a member of the Seperatist Droids.  Your
				objective is to hunt and kill any members of the Republic's Clones.  
				RDM principles still apply when not fighting clones.]],
        weapons = {"weapon_swrp_droidblaster", "weapon_swrp_dc15pistol"},
        command = "droids",
        max = 4,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and unlock the ability to play as this class."
})

TEAM_EXPERTCLONESGANGLEADER = AddExtraTeam("Clone Commander", {
        color = Color(0, 255, 0, 255),
        model = "models/player/corpse1.mdl",
        description = [[The Clone Commander is responsible
				for maintaining order in the Droid Ranks.  
				As the commander, you give orders and the other clones must follow these without
				question or face demotion.  
				RDM orders against people other people besides droids will result in demotion.]],
        weapons = {"weapon_swrp_cloneblaster", "weapon_swrp_dc15pistol"},
        command = "clonecommander",
        max = 1,
        salary = 100,
        admin = 0,
        vote = true,
        NeedToChangeFrom = TEAM_EXPERTSTARWARSCLONES,
        hasLicense = false,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and and become a Republic Clone to unlock the ability to play as this class."
})

TEAM_EXPERTDROIDSGANGLEADER = AddExtraTeam("Droid Commander", {
        color = Color(255, 0, 255, 255),
        model = "models/player/sgg/starwars/battledroid_commander.mdl",
        description = [[The Droid Commander is responsible
				for maintaining order in the Droid Ranks.  
				As the commander, you give orders and the other droids must 
				follow these without question
				or face demotion.  RDM orders against other people besides 
				clones will result in demotion.]],
        weapons = {"weapon_bugbait"},
        command = "droidcommander",
        max = 1,
        salary = 100,
        admin = 0,
        vote = true,
        hasLicense = false,
		NeedToChangeFrom = TEAM_EXPERTSTARWARSDROIDS,
        customCheck = function(ply) return ply:IsUserGroup("goldmember") or ply:IsAdmin() end
        CustomCheckFailMsg = "Donate to get Gold Membership and become a Seperatist Droid to unlock the ability to play as this class."
})


TEAM_EXPERTMAFIA = AddExtraTeam("Mafia Gangster", {
        color = Color(0, 255, 0, 255),
        model = {
				"models/humans/mafia/male_09.mdl",
				"models/humans/mafia/male_08.mdl",
				"models/humans/mafia/male_07.mdl",
				"models/humans/mafia/male_06.mdl",
				"models/humans/mafia/male_04.mdl",
				"models/humans/mafia/male_02.mdl",
				"models/humans/mafia/fedora.mdl",
				}
        description = [[You are a member of the local Mafia.  Your responsibillity is to follow the Mobboss's orders and to 
				help your fellow gangsters
				against the local non-mafia gangsters.  
				RDM's against people other than standard gangsters will result in a demotion.]],
        weapons = {},
        command = "mobster",
        max = 4,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false,
)}

TEAM_EXPERTMAFIALEADER = AddExtraTeam("Mobboss", {
        color = Color(0, 255, 0, 255),
        model = "models/player/rorschach.mdl",
        description = [[You are the leader of the local Mafia.  Your responsibillity is to coordinate your gangsters
				against the local non-mafia gangsters.  
				RDM's against people other than standard gangsters will result in a demotion.]],
        weapons = {},
        command = "mobboss",
        max = 1,
        salary = 50,
        admin = 0,
        vote = true,
        hasLicense = false,
		NeedToChangeFrom = TEAM_EXPERTMAFIA,
        CustomCheckFailMsg = "You need to be a Mafia Gangster first."
)}








All the VIP classes have to follow that format if their not vip it is what is list below

TEAM_HOBO = AddExtraTeam("Hobo", {
        color = Color(80, 45, 0, 255),
        model = {
		"models/player/corpse1.mdl"
		},
        description = [[The lowest member of society. All people see you laugh.
                You have no home.
                Beg for your food and money
                Sing for everyone who passes to get money
                Make your own wooden home]],
        weapons = {"weapon_bugbait"},
        command = "hobo",
        max = 5,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
})



Heres the last example this is what they give for basic jobs use this or the one above use the top one for VIP ONLY!

TEAM_Example = AddExtraTeam("Example team", {
        color = Color(255, 255, 255, 255),
        model = {
                "models/player/Group03/Female_01.mdl",
                "models/player/Group03/Female_02.mdl"
                },
        description = [[This text will serve as the description of
                this team.]],
        weapons = {"weapon_p2282"},
        command = "example",
        max = 3,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false,
        NeedToChangeFrom = TEAM_CITIZEN,
        help = "You are an example. Walk around and be exemplary.",
        customCheck = function(ply) return ply:getDarkRPVar("money") > 10000 end,
        CustomCheckFailMsg = "You don't have enough money!",
        modelScale = 1.2,
        maxpocket = 20,
        maps = {"rp_downtown_v2", "gm_construct"},
        candemote = false,
        mayor = false,
        chief = false,
        medic = false,
        cook = false,
        hobo = false,

        CanPlayerSuicide = function(ply) return false end,
        PlayerCanPickupWeapon = function(ply, weapon) return true end,
        PlayerDeath = function(ply, weapon, killer) end,
        PlayerLoadout = function(ply) return true end,
        PlayerSelectSpawn = function(ply, spawn) end,
        PlayerSetModel = function(ply) return "models/player/Group03/Female_02.mdl" end,
        PlayerSpawn = function(ply) end,
        PlayerSpawnProp = function(ply, model) end,
        RequiresVote = function(ply, job) for k,v in pairs(player.GetAll()) do if IsValid(v) and v:IsAdmin() then return false end end return true end, -- People need to make a vote when there is no admin around
        ShowSpare1 = function(ply) end,
        ShowSpare2 = function(ply) end
})
/*

--------------------------------------------------------
HOW TO MAKE AN EXTRA CLASS!!!!
--------------------------------------------------------

You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!!
Ok here's how:

To make an extra class do this:
AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)

The real example is here: it's the Hobo:   */

--VAR without /!!!   The name the color(what you see in tab) the player model   The description
TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[The lowest member of society. All people see you laugh.
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]], {"weapon_bugbait"}, "hobo", 5, 0, 0, false)
//No extra weapons say /hobo to become hobo Maximum hobo's = 5   his salary = 0 because hobo's don't earn money. 0 = everyone can become hobo , false = you don't have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!!!!
// HAVING "/dude" IN THE COMMAND FIELD IS WROOOOOOOONG!!!!
//ADD TEAMS UNDER THIS LINE:








/*
--------------------------------------------------------
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 and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_EXPERTSWAT)
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("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE, TEAM_SWAT, TEAM_EXPERTSWAT})







/*---------------------------------------------------------------------------
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,
}

/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam("TEAM_HITMAN", "TEAM_EXPERTHITMAN")


The error is

[ERROR] lua/darkrp_customthings/jobs.lua:232: ‘}’ expected (to close ‘{’ at line 226) near ‘description’

  1. unknown - lua/darkrp_customthings/jobs.lua:0

Between TEAM_POLICECHIEF and TEAM_HITMAN, you put TEAM_ADMIN all on one line and is not formatted correctly.

Try this


TEAM_ADMIN = AddExtraTeam("Admin on Duty!", {
color = Color(128, 0, 128, 255 ),
        model = {
"models/player/harry_potter.mdl", 
"models/player/sumario_galaxy.mdl", 
"models/player/suluigi_galaxy.mdl", 
"models/player/nuggets.mdl", 
"models/player/teslapower.mdl", 
"models/player/sunabouzu.mdl", 
"models/player/shaun.mdl", 
"models/player/security_suit.mdl", 
"models/player/scarecrow.mdl", 
"models/player/zelda.mdl", 
"models/player/yoshi.mdl", 
"models/player/zerop.mdl", 
"models/player/zoey.mdl", 
"models/player/subzero.mdl", 
"models/player/skeleton.mdl", 
"models/player/scorpion.mdl", 
"models/player/samusz.mdl", 
"models/player/rorschach.mdl", 
"models/player/roman.mdl", 
"models/player/rayman.mdl", 
"models/player/niko.mdl", 
"models/player/midna.mdl", 
"models/player/mart.mdl", 
"models/player/macdguy.mdl", 
"models/player/leon.mdl", 
"models/player/knight.mdl", 
"models/player/jawa.mdl", 
"models/player/jack_sparrow.mdl", 
"models/player/hunter.mdl", 
"models/player/gordon.mdl", 
"models/player/gmt_shared.mdl", 
"models/player/gmen.mdl", 
"models/player/foohysaurusrex.mdl",
"models/player/faith.mdl", 
"models/player/doomguy.mdl",
"models/player/dishonored_assassin1.mdl", 
"models/player/clopsy.mdl", 
"models/player/chris.mdl", 
"models/player/chewbacca.mdl", 
"models/player/blockdude.mdl", 
"models/player/azuisleet1.mdl", 
"models/player/aphaztech.mdl", 
"models/player/altair.mdl", 
"models/player/billymays.mdl",
} 
        description = [[You Administrate the Server]],
        weapons = {"keys", "pocket", "weapon_keypadchecker", "gmod_tool", "arrest_stick", "unarrest_stick"},
        command = "admin",
        max = 3,
        salary = 300,
        admin = 1,
        vote = false,
})

now im getting this error

[ERROR] lua/darkrp_customthings/jobs.lua:272: ‘}’ expected (to close ‘{’ at line 224) near ‘description’

  1. unknown - lua/darkrp_customthings/jobs.lua:0

after putting the above lines in

The error tells you the problem, if you know how tables are made.
The code code_gs posted needs a comma after the model table is ended.

Okay so im now getting this error
[ERROR] lua/darkrp_customthings/jobs.lua:365: ‘}’ expected (to close ‘{’ at line 351) near ‘CustomCheckFailMsg’

  1. unknown - lua/darkrp_customthings/jobs.lua:0

Ok, so now it’s your turn to read the error and fix it.



TEAM_ADMIN = AddExtraTeam("Admin on Duty!", {
	color = Color(128, 0, 128, 255 ),
	model = {
		"models/player/harry_potter.mdl", 
		"models/player/sumario_galaxy.mdl", 
		"models/player/suluigi_galaxy.mdl", 
		"models/player/nuggets.mdl", 
		"models/player/teslapower.mdl", 
		"models/player/sunabouzu.mdl", 
		"models/player/shaun.mdl", 
		"models/player/security_suit.mdl", 
		"models/player/scarecrow.mdl", 
		"models/player/zelda.mdl", 
		"models/player/yoshi.mdl", 
		"models/player/zerop.mdl", 
		"models/player/zoey.mdl", 
		"models/player/subzero.mdl", 
		"models/player/skeleton.mdl", 
		"models/player/scorpion.mdl", 
		"models/player/samusz.mdl", 
		"models/player/rorschach.mdl", 
		"models/player/roman.mdl", 
		"models/player/rayman.mdl", 
		"models/player/niko.mdl", 
		"models/player/midna.mdl", 
		"models/player/mart.mdl", 
		"models/player/macdguy.mdl", 
		"models/player/leon.mdl", 
		"models/player/knight.mdl", 
		"models/player/jawa.mdl", 
		"models/player/jack_sparrow.mdl", 
		"models/player/hunter.mdl", 
		"models/player/gordon.mdl", 
		"models/player/gmt_shared.mdl", 
		"models/player/gmen.mdl", 
		"models/player/foohysaurusrex.mdl",
		"models/player/faith.mdl", 
		"models/player/doomguy.mdl",
		"models/player/dishonored_assassin1.mdl", 
		"models/player/clopsy.mdl", 
		"models/player/chris.mdl", 
		"models/player/chewbacca.mdl", 
		"models/player/blockdude.mdl", 
		"models/player/azuisleet1.mdl", 
		"models/player/aphaztech.mdl", 
		"models/player/altair.mdl", 
		"models/player/billymays.mdl"
		},
	description = [[You Administrate the Server]],
	weapons = {"keys", "pocket", "weapon_keypadchecker", "gmod_tool", "arrest_stick", "unarrest_stick"},
	command = "admin",
	max = 3,
	salary = 300,
	admin = 1,
	vote = false
})


Oopsie, thanks.

[editline]23rd October 2013[/editline]

Did you make this code? Because there are a lot of obvious, really simple format errors that could be fixed in 2 seconds.

Between lines 314-495, place commas after customCheck= function(ply) codehere end**,** <–

Yeah i fixed it already i was extremely tired when i designed this but ive fixed them all today so this thread can be closed thanks guys!

Please mark it as solved :slight_smile: