server.banIP

From GTA Connected
Revision as of 19:18, 26 November 2020 by Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = server |type = method |class = Server |name = banIP |parameters = string ipAddress int timeoutInMilliseconds |parameter1 = string dataName The IP to b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Method Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.2.4

null server.banIP(string ipAddress int timeoutInMilliseconds)

The server.banIP method is used to bans an IP address and blocks it from connecting.

Parameters

1) string dataName The IP to be banned.
2) int timeout How long before the ban should expire (in milliseconds). Use 0 for permanent ban.

Return

null This method doesn't return a value.

Types

Client Server

Notes

There aren't any notes for this method.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.