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

Function

getBanIP

ServerAdministration and bansIdentical to MTA:SA

Returns the IP address stored in the ban.

Syntax

string getBanIP(ban ban)

Arguments

banban
The ban handle.

Returns

The IP address, or false if the ban has no IP.

Example

for _, ban in ipairs(getBans()) do
    local ip = getBanIP(ban)
    if ip then print("Zablokowane IP: " .. ip) end
end