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

Function

getBans

Returns every active ban. Bans that have already expired are skipped.

Syntax

table getBans()

Differences from MTA:SA

  • In MTA:SA this function is client-side only.

In MTA:SA

getBans()

Returns

A table of ban handles (may be empty).

Example

local bans = getBans()
print("Aktywnych banów: " .. #bans)

See also