AclGroupListACL: Difference between revisions
Jump to navigation
Jump to search
m (fix oop syntax) |
Qwe7769611 (talk | contribs) No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
===Returns=== | ===Returns=== | ||
<!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --> | <!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --> | ||
Returns a table | Returns a table of the ACL elements in the given ACL group. This table might be empty. Returns ''false'' or ''nil'' if theGroup is invalid or it fails for some other reason. | ||
==Example== | ==Example== | ||
Line 38: | Line 38: | ||
<!-- 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}} | ||
[[zh-cn:AclGroupListACL]] |
Latest revision as of 08:35, 5 February 2021
This function returns a table over all the ACL's that exist in a given ACL group.
Syntax
table aclGroupListACL ( aclgroup theGroup )
OOP Syntax Help! I don't understand this!
- Method: aclgroup:listACL(...)
- Variable: .aclList
Required Arguments
- theGroup: The ACL group to get the ACL elements from
Returns
Returns a table of the ACL elements in the given ACL group. This table might be empty. Returns false or nil if theGroup is invalid or it fails for some other reason.
Example
This example outputs the list of ACL's if the aclGroup name is given. (TESTED!)
addCommandHandler("aclList",function(player,command,aclGroup) if(aclGroup~="")then tables = aclGroupListACL(aclGetGroup(aclGroup)) count = 0 for list,nam in pairs(tables) do outputChatBox("ACL LIST: "..aclGroup.."Line: "..tostring(count).." ACL: "..aclGetName(nam)..".",player) count = count + 1 end else outputChatBox("Please add the aclGroup you want the list of.",player) outputChatBox("Syntax: /aclList aclGroup",player) end end)
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