networkGetHostBroadcastDataSizeUnsynced
_NETWORK_GET_HOST_BROADCAST_DATA_SIZE_UNSYNCED0x72C8588ABE22C972The 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.
networkGetHostBroadcastDataSizeUnsynced(
scriptNameHash: Hash,
instance: number,
positionHash: Hash,
handlerNum: number
): numbernetworkGetHostBroadcastDataSizeUnsynced(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptNameHash | Hash | number | integer |
instance | int | number | integer |
positionHash | Hash | number | integer |
handlerNum | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- 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