Player::ping: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
(3 intermediate revisions by 3 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==
==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