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

Function

aclSave

Saves the ACL to acl.json in the server folder.

Syntax

bool aclSave()

Differences from MTA:SA

  • In MTA:SA this function is client-side only.

In MTA:SA

aclSave()

Returns

true on success.

Example

addEventHandler("onResourceStop", resourceRoot, function()
    if aclHasUnsavedChanges() then aclSave() end
end)

See also