Check Team Help!

So this is my code

if table.HasValue( MayorM, team.GetName(ply:Team()) ) then


The table contains

MayorM = {"Mayor"}

And this is my error

[ERROR] addons/mayor_menu/lua/autorun/server/sv_mayormenu.lua:7: attempt to index local 'team' (a boolean value)
  1. v - addons/mayor_menu/lua/autorun/server/sv_mayormenu.lua:7
   2. unknown - gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua:138

Been working on this script and this is my only issue right now.


You have redefined the global table “team” somewhere earlier in your script to be a true/false value.

Problem solved, thank you so much!