Player::ping: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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 playerPing = player.ping;
let playerPing = player.ping
player.outputChatBox("Your ping is: " + playerPing);
</syntaxhighlight>
</pre>
</div>
}}


==See Also==
==See Also==
{{Player_block}}
{{Player_block}}
[[Category:Player API]]
[[Category:Server-side Property]]

Latest revision as of 17:03, 17 May 2019

This property returns players ping.

Note: this property is read-only.

Example

Server-Side
let playerPing = player.ping;
player.outputChatBox("Your ping is: " + playerPing);

See Also