GetPlayerPing
The player’s round trip to the server in milliseconds.
Syntax
Section titled “Syntax”GetPlayerPing(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - milliseconds; -1 when not connected
Example
Section titled “Example”SendClientMessage(pid, COLOUR_SERVER, "your ping is " .. GetPlayerPing(pid) .. " ms")See also
Section titled “See also”GetPlayerIP · the Players group of the index
