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

Function

aclCreate

ServerPermissions (ACL)Identical to MTA:SA

Creates an access control list (ACL) with the given name. A list holds rights, and groups connect lists with players and resources. aclSave stores the changes.

Syntax

acl aclCreate(string aclName)

Arguments

aclNamestring
List name.

Returns

The list (its name) or false.

Example

A moderator group with the right to the /kick command.

local acl = aclCreate("Moderator")
aclSetRight(acl, "command.kick", true)
aclSetRight(acl, "command.ban", false)

local group = aclCreateGroup("Moderatorzy")
aclGroupAddACL(group, acl)
aclGroupAddObject(group, "user.jan")
aclSave()

See also