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

Function

reloadBans

Reloads the ban list from disk, for example after editing the ban file by hand.

Syntax

bool reloadBans()

Differences from MTA:SA

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

In MTA:SA

reloadBans()

Returns

true if the list was reloaded.

Example

addCommandHandler("reloadbans", function(admin)
    if reloadBans() then
        outputChatBox("Bany wczytane: " .. #getBans(), admin)
    end
end, true)