aclGroupList
Client-side
Server-side
Shared
This function returns a table of all the ACL groups.
OOP Syntax Help! I don't understand this!
- Method: ACLGroup.list(...)
Syntax
table aclGroupList ( )
Returns
- table: acl groups list
Returns a table of all the ACL groups if successful, returns an empty table if no ACL groups exist. false/nil can be returned if this function fails for some other reason.
Code Examples
server
This example shows, how to output all ACL Group names by showAclGroups
.
local function showGroups(player) local groups = aclGroupList() or {} for i,v in ipairs(groups) do local name = aclGroupGetName(v) outputChatBox(name, player, 255, 255, 255) endendaddCommandHandler("showAclGroups",showGroups)
See Also
ACL Functions
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetName
- aclGetRight
- aclGetGroup
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListObjects
- aclGroupListACL
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclObjectGetGroups
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup