RedM Natives

NETWORK_GET_AVERAGE_LATENCY

Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER

Hash0xD414BE129BB81B32
Runtime nameNetworkGetAverageLatency
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD414BE129BB81B32

Not called by the game's own scripts — behaviour may be incomplete.

Signature

float NETWORK_GET_AVERAGE_LATENCY(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns float

Description

Old name: _NETWORK_GET_AVERAGE_LATENCY_FOR_PLAYER

Usage

Lua
local retval = NetworkGetAverageLatency(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0xD414BE129BB81B32, player, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = NetworkGetAverageLatency(player);

// by hash
const retval = Citizen.invokeNative('0xD414BE129BB81B32', player, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xD414BE129BB81B32, player);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.