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

Function

getResourceACLRequests

ServerResourcesIdentical to MTA:SA

Returns the rights a resource asks for in meta.xml (aclrequests in <info>). Each entry is a table with the right name and its state.

Syntax

table getResourceACLRequests(resource theResource)

Arguments

theResourceresource
The resource.

Returns

A table of { name, access, pending }.

Example

for _, req in ipairs(getResourceACLRequests(getResourceFromName("admin"))) do
    outputServerLog(req.name .. (req.pending and " (czeka)" or ""))
end

See also