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

Function

aclGroupAddObject

ServerPermissions (ACL)Identical to MTA:SA

Adds an object to a group: the string "user.accountname", "resource.resourcename", a player or a resource.

Syntax

bool aclGroupAddObject(aclgroup theGroup, mixed theObjectName)

Arguments

theGroupaclgroup
The group.
theObjectNamemixed
The object.

Returns

true on success.

Example

addCommandHandler("dajvip", function(admin, cmd, accountName)
    if not isObjectInACLGroup(admin, "Admin") then return end
    aclGroupAddObject(aclGetGroup("VIP"), "user." .. accountName)
    aclSave()
end)