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

Function

getBanSerial

ServerAdministration and bansIdentical to MTA:SA

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