AclGroupList: Difference between revisions
Jump to navigation
Jump to search
m (fix oop syntax) |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 30: | Line 30: | ||
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | <!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | ||
{{ACL_functions}} | {{ACL_functions}} | ||
[[ar:aclGroupList]] | |||
[[en:AclGroupList]] | |||
[[zh-cn:AclGroupList]] |
Latest revision as of 18:30, 21 February 2021
This function returns a table of all the ACL groups.
Syntax
table aclGroupList ()
OOP Syntax Help! I don't understand this!
- Note: This function is a static function underneath the ACL Group class.
- Method: ACLGroup.list(...)
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.
Example
This example shows, how to output all ACL Group Names by showAclGroups
function showGroups(player) local groups = {} groups = aclGroupList() for i,v in ipairs(groups) do local name = aclGroupGetName(v) outputChatBox(tostring(name),player) end end addCommandHandler("showAclGroups",showGroups)
See Also
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup