[DarkRP\gamemode\client\showteamtabs.lua:597] attempt to compare number with boolean

The f4 menu is blank when you try to open it except for the cop job on the upper left, i have searched the web and this happens quite a bit apparently, i have checked and double checked and checked a few more times through my lua script and cant find where the error is, it shouldnt be in the chowteamtabs.lua like it says because the problem occurs when i change the shared.lua so here it is, if anyone could help it would be greatly appreciated. (the error will most likely be found in the custom jobs section of the code)


/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("Citizen", Color(20, 150, 20, 255), {
"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"},
[[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {"keys", "pocket"}, "citizen", 0, 45, 0, false, false)
 
TEAM_POLICE = AddExtraTeam("Civil Protection", Color(25, 25, 170, 255), "models/player/police.mdl", [[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]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, "cp", 4, 65, 0, true, true)
 
TEAM_GANG = AddExtraTeam("Gangster", Color(75, 75, 75, 255), {
"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"}, [[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.]], {"keys", "pocket"}, "gangster", 8, 45, 0, false, false)
 
TEAM_GANGLEADER = AddExtraTeam("Gangster Leader", Color(25, 25, 25, 255), "models/player/gman_high.mdl", [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {"lockpick", "unarrest_stick", "keys", "pocket"}, "gangleader", 1, 80, 0, false, false, TEAM_GANG)
 
TEAM_GUN = AddExtraTeam("Gun Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {"keys", "pocket"}, "gundealer", 2, 45, 0, false, false)
 
TEAM_MEDIC = AddExtraTeam("Medic", Color(47, 79, 79, 255), "models/player/kleiner.mdl", [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {"med_kit", "keys", "pocket"}, "medic", 1, 45, 0, false, false)
 
TEAM_RAPIST = AddExtraTeam("Rapist", Color(152, 5, 163, 255), "models/player/stripped.mdl", [[As a rapist, you rape people and bring fear into their souls... dont random rape more than once every ten minutes.]], {"weapon_rape", "keys", "pocket"}, "rape", 2, 500, 1, 0, false)
 
TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", Color(20, 20, 255, 255), "models/player/combine_soldier_prisonguard.mdl", [[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]], {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker", "keys", "pocket"}, "chief", 1, 120, 0, false, true, TEAM_POLICE)
 
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 /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area
/unlockdown to end a lockdown]], {"keys", "pocket"}, "mayor", 1, 200, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/)
/*
--------------------------------------------------------
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

//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:

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", "pocket", "keys"}, "hobo", 5, 0, 0, false, false)

TEAM_SWAT = AddExtraTeam("S.W.A.T", Color(54, 100, 139, 255), {"models/player/riot.mdl", "models/player/urban.mdl"}, [[your the swat patrol and dont get killed earn alot of cash]], {"arrest_stick", "keys", "door_ram", "pocket", "stunstick", "unarrest_stick", "weaponchecker", "weapon_mad_usp", "weapon_mad_mp5"}, "swat", 3, 120, 1, true, true, {TEAM_POLICE, TEAM_CHIEF})
 
TEAM_PET = AddExtraTeam("Pet", Color(255, 255, 0, 255), "models/player/zombine.mdl", [[Get adopted]], {"keys", "pocket"}, "pet", 1, 0, 0, 0, false, false)
 
TEAM_HITMAN = AddExtraTeam("Hitman", Color(215, 56, 27, 255), "models/player/phoenix.mdl", [[Get a target, Kill the target, Profit.]], {"keys", "pocket", "weapon_glock"}, "hitman", 2, 70, 0, true, false) 
 
TEAM_ADMIN = AddExtraTeam("Admin", Color(128, 0, 128, 255), "models/player/super.mdl", [[You Administrate the Server]], {"keys", "pocket", "weapon_keypadchecker", "gmod_tool", "arrest_stick", "unarrest_stick"}, "admin", 2,  0, 2, false, false)
 
TEAM_SWATLEAD = AddExtraTeam("S.W.A.T Commander", Color(54, 100, 139, 255), {"models/player/swat.mdl", "models/player/urban.mdl"}, [[Lead S.W.A.T. into missions and tell them what to do]], {"arrest_stick", "keys", "door_ram", "pocket", "stunstick", "unarrest_stick", "weaponchecker", "weapon_mad_m3", "weapon_mad_m4", "weapon_mad_flash"}, "swatlead", 1, 150, 1, true, true, {TEAM_SWAT, TEAM_SWATSNIPE, TEAM_CQ, TEAM_MARKSMAN})
 
TEAM_SWATSNIPE = AddExtraTeam("SWAT Sniper", Color(36, 22, 158, 255), {"models/player/swat.mdl", "models/player/riot.mdl", "models/player/urban.mdl"}, [[You are Part of the elite police task force.]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "weapon_mad_scout", "weapon_mad_knife", "weapon_mad_usp"}, "sniper", 2, 100, true, false, {TEAM_POLICE, TEAM_CHIEF})

TEAM_CQ = AddExtraTeam("CQ Expert", Color(36, 22, 158, 255), {"models/player/swat.mdl", "models/player/urban.mdl", "models/player/riot.mdl"}, [[You are Part of the elite police task force.]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "weapon_mad_flash", "weapon_mad_sg552", "weapon_mad_m4", "weapon_mad_usp", "weapon_mad_deagle"}, "cqe", 2, 100, 1, true, false, {TEAM_POLICE, TEAM_CHIEF})

TEAM_MARKSMAN = AddExtraTeam("Marksman Elite", Color(36, 22, 158, 255), {"models/player/swat.mdl", "models/player/urban.mdl", "models/player/riot.mdl"}, [[You are Part of the elite police task force.]], {"arrest_stick", "unarrest_stick", "weapon_mad_g3", "weapon_mad_tmp", "weapon_mad_smoke", "weapon_mad_knife", "stunstick", "door_ram", "weaponchecker", "weapon_mad_usp"}, "marksman", 2, 100, 1, true, false, {TEAM_POLICE, TEAM_CHIEF})

TEAM_GUARD = AddExtraTeam("Bodyguard", Color(216, 219, 34, 255), "models/player/guerilla.mdl", [[Get hired to protect people.]], {"keys", "pocket", "weapon_glock"}, "Guard", 2, 60, 0,true, false) 

TEAM_THIEF = AddExtraTeam("Thief", Color(98, 98, 98, 200), "models/player/phoenix.mdl", [[GO ROB SOME SHIT NIGGA]], {"weapon_keypad_cracker", "weapon_lockpick"}, "thief", 3, 70, 0, false, false)
 
 
 
/*
--------------------------------------------------------
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("Police Station", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT, TEAM_CQ, TEAM_SWATSNIPE, TEAM_SWATLEAD, TEAM_ADMIN, TEAM_SWAT, TEAM_)

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

[lua]TEAM_SWATSNIPE = AddExtraTeam(“SWAT Sniper”, Color(36, 22, 158, 255), {“models/player/swat.mdl”, “models/player/riot.mdl”, “models/player/urban.mdl”}, [[You are Part of the elite police task force.]], {“arrest_stick”, “unarrest_stick”, “weapon_glock2”, “stunstick”, “door_ram”, “weaponchecker”, “weapon_mad_scout”, “weapon_mad_knife”, “weapon_mad_usp”}, “sniper”, 2, 100, 0, true, false, {TEAM_POLICE, TEAM_CHIEF})[/lua]

You forgot the 0/1/2 for if the job is admin/superadmin only or not.