User grouptable?

[lua]if ply:GetUserGroup == “member” then[/lua]

How would I make this so I could Allow: member, admin, superadmin, vip, vip+ ?

[lua]AllowedUserGroups = { “Vip”, “vip+”, “admin”, “member”, “superadmin” }[/lua]
Something like this?


  • Cue sarcastic comment about being a Dev *

But uh, take your usergroups table and then do an in pairs loop which checks if the player is one of those UserGroups. That ought to do it

  • Cue sarcastic comment about you selling huds on Script Fodder * Nice job man!

Ooh saucy. You got 2 examples of how to do what you want, enjoy