NetworkClientNot in this build

networkGetHostBroadcastDataSizeUnsynced

_NETWORK_GET_HOST_BROADCAST_DATA_SIZE_UNSYNCED0x72C8588ABE22C972

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

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

Open in the interactive natives reference