GetPing: Difference between revisions
From Onset Developer Wiki
X7airworker (talk | contribs) No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
print("Player ping: "..GetPing()..".") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
[[GetNetworkStats]] | [[GetNetworkStats]] |
Latest revision as of 10:02, 12 December 2019
Description
Gets the client ping.
Syntax
GetPing()
Parameters
- This function has no parameters.
Return Value
- The clients ping.
Example
print("Player ping: "..GetPing()..".")