RedM Natives

NETWORK_GET_AVERAGE_PACKET_LOSS

Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER

Hash0x350C23949E43686C
Runtime nameNetworkGetAveragePacketLoss
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x350C23949E43686C

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

Signature

float NETWORK_GET_AVERAGE_PACKET_LOSS(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns float

Description

Old name: _NETWORK_GET_AVERAGE_PACKET_LOSS_FOR_PLAYER

Usage

Lua
local retval = NetworkGetAveragePacketLoss(player)

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

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

Sources

alloc8or RDR3 NativeDB

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