Player::ip: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Replaced HTML with template)
Line 3: Line 3:
'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
== Example ==
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServersideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
let playerIP = player.ip;
let playerIP = player.ip
player.outputChatBox("Your IP is: " + playerIP);
</syntaxhighlight>
</pre>
</div>
}}
==See Also==
==See Also==
{{Player_block}}
{{Player_block}}

Revision as of 11:39, 26 October 2018

This property returns players ip adress.

Note: this property is read-only.

Example

Server-Side
let playerIP = player.ip;
player.outputChatBox("Your IP is: " + playerIP);

See Also