- Documentation
- Server functions
- aclObjectGetGroups
Function
aclObjectGetGroups
Returns the groups an object (player, account or resource) belongs to.
Syntax
table aclObjectGetGroups(mixed theObject)Arguments
theObjectmixed- The object.
Returns
A table of groups.
Example
addEventHandler("onPlayerLogin", root, function()
outputChatBox("Twoje grupy: " .. table.concat(aclObjectGetGroups(source), ", "), source)
end)