ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. aclListRights

Function

aclListRights

ServerPermissions (ACL)Identical to MTA:SA

Returns the rights of a list, optionally of one kind only.

Syntax

table aclListRights(acl theACL [, string allowedType = nil])

Arguments

theACLacl
The list.
allowedTypestring, optional = nil
"function", "command", "resource" or "general".

Returns

A table of right names.

Example

for _, right in ipairs(aclListRights(aclGet("Moderator"), "command")) do
    outputServerLog(right)
end