Player::ping: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns players ping. '''Note: this property is read-only.''' == Example == <source lang="javascript"> let playerPing = player.ping </source>")
 
mNo edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 3: Line 3:
'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
== Example ==
== Example ==
<source lang="javascript">
{{ServersideCode|
let playerPing = player.ping
<pre>
</source>
let playerPing = player.ping;
player.outputChatBox("Your ping is: " + playerPing);
</pre>
}}
 
==See Also==
{{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