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

Function

getPlayerIP

ServerPlayersIdentical to MTA:SA

Returns the player's IP address.

Syntax

string getPlayerIP(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

IP address or false.

Example

addEventHandler("onPlayerJoin", root, function()
    outputServerLog(getPlayerName(source) .. " wszedł z " .. getPlayerIP(source))
end)