- Documentation
- Server functions
- getBanSerial
Function
getBanSerial
Returns the serial (Client ID) stored in the ban.
Syntax
string getBanSerial(ban ban)Arguments
banban- The ban handle.
Returns
The Client ID, or false if the ban has none.
Example
local function findBanBySerial(serial)
for _, ban in ipairs(getBans()) do
if getBanSerial(ban) == serial then return ban end
end
return false
end