The Lab
NETWORK native

NETWORK_GET_AVERAGE_PING

returns float1 parambuild 1207

Returns the average ping to the player.

Signature

C
float NETWORK_GET_AVERAGE_PING(Player player); // 0x0E3A041ED6AC2B45 b1207

Parameters

#NameType
1playerPlayer

Facts

Facts about NETWORK_GET_AVERAGE_PING
Name
NETWORK_GET_AVERAGE_PING
Hash
0x0E3A041ED6AC2B45
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x0E3A041ED6AC2B45, -- NETWORK_GET_AVERAGE_PING
  PlayerId(), -- Player player
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x0E3A041ED6AC2B45", // NETWORK_GET_AVERAGE_PING
  PlayerId(), // Player player
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x0E3A041ED6AC2B45, // NETWORK_GET_AVERAGE_PING
  API.PlayerId() // Player player
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.