getPlayerIP | Multi Theft Auto: Wiki Skip to content

getPlayerIP

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns a string containing the IP address of the player.

Syntax

getPlayerIP ( )

Code Examples

server

This example prints a player's IP to the chat.

function printIp ( thePlayer )
outputChatBox ( "IP: " .. getPlayerIP ( thePlayer ), thePlayer )
end
addCommandHandler ( "ip", printIp )

See Also