So I am attempting to create a meta table that either returns the name of a table or false. Before I go into more depth, here’s what I think is on the right track to what I think I’m trying to do (if that makes sense).
local meta = FindMetaTable("Player") function meta:InGroup() if table.HasValue ( GROUPS.group1.members , self:SteamID() ) return group1 else return false end end
Now the problem is that within the GROUPS table their can be more “groups”. For instance their can be a group2 or a group3 for example, so I’m not sure how to make this so it checks all possible tables within the GROUPS table and how to also return the specific group# table that the player is in.
I apologize in advance to my obvious cluelessness…