- Documentation
- Server functions
- 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)