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
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.
- table: acl groups list
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
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclObjectGetGroupsNew
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup