networkGetPlayerBroadcastDataSizeUnsynced
_NETWORK_GET_PLAYER_BROADCAST_DATA_SIZE_UNSYNCED0xB99CD664FD4720A1The GTA V native _NETWORK_GET_PLAYER_BROADCAST_DATA_SIZE_UNSYNCED of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetPlayerBroadcastDataSizeUnsynced, in JavaScript and in Lua.
networkGetPlayerBroadcastDataSizeUnsynced(
scriptNameHash: Hash,
instance: number,
positionHash: Hash,
handlerNum: number
): numbernetworkGetPlayerBroadcastDataSizeUnsynced(
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 = networkGetPlayerBroadcastDataSizeUnsynced(
scriptNameHash, instance, positionHash, handlerNum
);Lua
local result = networkGetPlayerBroadcastDataSizeUnsynced(
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_PLAYER_BROADCAST_DATA_SIZE_UNSYNCED(Hash scriptNameHash, int instance, Hash positionHash, int handlerNum)- Hash
0xB99CD664FD4720A1- Introduced
- Game build 3586 legacy numbering