- Documentation
- Server functions
- aclGroupAddObject
Function
aclGroupAddObject
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)