NETWORK_GET_AVERAGE_PING
Same as NETWORK_GET_AVERAGE_LATENCY (0xD414BE129BB81B32) Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER_2
Hash
0x0E3A041ED6AC2B45Runtime name
NetworkGetAveragePingNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x0E3A041ED6AC2B45Not called by the game's own scripts — behaviour may be incomplete.
Signature
float NETWORK_GET_AVERAGE_PING(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns float
Description
Same as NETWORK_GET_AVERAGE_LATENCY (0xD414BE129BB81B32)
Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER_2
Usage
local retval = NetworkGetAveragePing(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0x0E3A041ED6AC2B45, player, Citizen.ResultAsFloat())JavaScript and C#
const retval = NetworkGetAveragePing(player);
// by hash
const retval = Citizen.invokeNative('0x0E3A041ED6AC2B45', player, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x0E3A041ED6AC2B45, player);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.