- Documentation
- Server functions
- setBanReason
Function
setBanReason
Changes the ban reason.
Syntax
bool setBanReason(ban ban, string reason)Arguments
banban- The ban handle.
reasonstring- The new reason.
Returns
true on success.
Example
for _, ban in ipairs(getBans()) do
if not getBanReason(ban) then
setBanReason(ban, "Złamanie regulaminu")
end
end