GetPlayerIP
From Multi Theft Auto: Wiki
This function returns a string containing the IP address of the player.
Syntax
string getPlayerIP ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:getIP(...)
- Variable: .ip
Required Arguments
- thePlayer: The player element you want to get the IP of.
Returns
Returns a string containing the requested players's IP, or false if the player passed to the function is invalid.
Example
This example prints a player's IP to the chat.
function printIp ( thePlayer ) outputChatBox ( "IP: " .. getPlayerIP ( thePlayer ), thePlayer ) end addCommandHandler ( "ip", printIp )
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS