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

Function

isBan

ServerAdministration and bansIdentical to MTA:SA

Checks whether a value is a ban handle.

Syntax

bool isBan(mixed value)

Arguments

valuemixed
Any value.

Returns

true if it is a ban.

Example

local ban = banPlayer(player, nil, "cheaty")
if isBan(ban) then
    print("Ban założony")
end

See also