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

Function

aclObjectGetGroups

ServerPermissions (ACL)Identical to MTA:SA

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)