NetworkClientNot in this build

networkGetBroadcastDataHostUpdateSize

_NETWORK_GET_BROADCAST_DATA_HOST_UPDATE_SIZE0xE448693B3EA3B92C

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

SignatureJavaScript
networkGetBroadcastDataHostUpdateSize(
  scriptNameHash: Hash,
  instance: number,
  positionHash: Hash,
  handlerNum: number
): number
SignatureLua
networkGetBroadcastDataHostUpdateSize(
  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 = networkGetBroadcastDataHostUpdateSize(
  scriptNameHash, instance, positionHash, handlerNum
);
Lua
local result = networkGetBroadcastDataHostUpdateSize(
    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_HOST_UPDATE_SIZE(Hash scriptNameHash, int instance, Hash positionHash, int handlerNum)
Hash
0xE448693B3EA3B92C
Introduced
Game build 3586 legacy numbering

Open in the interactive natives reference