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

Function

aclGetRight

ServerPermissions (ACL)Identical to MTA:SA

Checks whether a list grants a right. Also returns false when there is no entry.

Syntax

bool aclGetRight(acl theAcl, string rightName)

Arguments

theAclacl
The list.
rightNamestring
Right name.

Returns

true if granted.

Example

if aclGetRight(aclGet("Moderator"), "command.kick") then
    outputServerLog("Moderatorzy mogą wyrzucać")
end