Player.IPAddress

From GMod Wiki

Revision as of 08:10, 23 November 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:IPAddress( )
Description:
Returns the player's IP-address
Returns: String
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.IPAddress]Player.IPAddress [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the player's IP Address to their console.
Used onNewerServer.png
Code
function PrintIP( ply )
    ply:PrintMessage(HUD_PRINTCONSOLE, "My IP Address: "..ply:IPAddress())
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox