aclGroupList | Multi Theft Auto: Wiki Skip to content

aclGroupList

Client-side
Server-side
Shared

This function returns a table of all the ACL groups.

OOP Syntax Help! I don't understand this!

Syntax

table aclGroupList ( )

Returns

Returns a table of all the ACL groups if successful, returns an empty table if no ACL groups exist. false/nil can be returned if this function fails for some other reason.

  • table: acl groups list

Code Examples

server

This example shows, how to output all ACL Group names by showAclGroups.

local function showGroups(player)
local groups = aclGroupList() or {}
for i, v in ipairs(groups) do
local name = aclGroupGetName(v)
outputChatBox(name, player, 255, 255, 255)
end
end
addCommandHandler("showAclGroups", showGroups)