NetworkClientNot in this build

networkGetBroadcastDataPlayerUpdateSize

_NETWORK_GET_BROADCAST_DATA_PLAYER_UPDATE_SIZE0xAC3F722321800755

The GTA V native _NETWORK_GET_BROADCAST_DATA_PLAYER_UPDATE_SIZE of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetBroadcastDataPlayerUpdateSize, in JavaScript and in Lua.

SignatureJavaScript
networkGetBroadcastDataPlayerUpdateSize(
  scriptNameHash: Hash,
  instance: number,
  positionHash: Hash,
  handlerNum: number
): number
SignatureLua
networkGetBroadcastDataPlayerUpdateSize(
  scriptNameHash: Hash,
  instance: integer,
  positionHash: Hash,
  handlerNum: integer
): integer
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
const result = networkGetBroadcastDataPlayerUpdateSize(
  scriptNameHash, instance, positionHash, handlerNum
);
Lua
local result = networkGetBroadcastDataPlayerUpdateSize(
    scriptNameHash, instance, positionHash, handlerNum
)

Parameters

ParameterTypeJavaScriptLua
scriptNameHashHashnumberinteger
instanceintnumberinteger
positionHashHashnumberinteger
handlerNumintnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int _NETWORK_GET_BROADCAST_DATA_PLAYER_UPDATE_SIZE(Hash scriptNameHash, int instance, Hash positionHash, int handlerNum)
Hash
0xAC3F722321800755
Introduced
Game build 3586 legacy numbering

Open in the interactive natives reference