CAMI hooks
snippet in lua

CAMI hooks

user4109

CAMI.OnUsergroupRegistered(CAMI_USERGROUP)

CAMI.OnUsergroupUnregistered(CAMI_USERGROUP)

CAMI.OnPrivilegeRegistered(CAMI_PRIVILEGE)

CAMI.OnPrivilegeUnregistered(CAMI_PRIVILEGE)

CAMI.PlayerHasAccess(actor :: Player, privilege :: string, callback :: function(bool, string), target :: Player, extraInfo :: table) :: bool/nil

CAMI.SteamIDHasAccess(actor :: SteamID, privilege :: string, callback :: function(bool, string), target :: Player, extraInfo :: table) :: bool/nil

CAMI.PlayerUsergroupChanged(ply :: Player, from :: string, to :: string, source :: any)

CAMI.SteamIDUsergroupChanged(steamId :: string, from :: string, to :: string, source :: any)