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

Function

updateResourceACLRequest

ServerResourcesIdentical to MTA:SA

Grants or revokes a right a resource asked for. It creates the ACL list resource.name, adds it to the Resources group and sets the right in it. With byWho it writes to the server log who did it.

Syntax

bool updateResourceACLRequest(resource theResource, string rightName, bool access [, string byWho])

Arguments

theResourceresource
The resource.
rightNamestring
The right name, e.g. "function.kickPlayer".
accessbool
true = grant, false = revoke.
byWhostring, optional
Who changed it (for the log).

Returns

true on success.

Example

updateResourceACLRequest(getResourceFromName("admin"), "function.kickPlayer", true, "konsola")
aclSave()

See also