NetworkClientBlocked

networkRegisterHostBroadcastVariables

NETWORK_REGISTER_HOST_BROADCAST_VARIABLES0x3E9B2F01C50DF595

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

SignatureJavaScript
networkRegisterHostBroadcastVariables(
  vars: null,
  numVars: number,
  debugName: string
): void
SignatureLua
networkRegisterHostBroadcastVariables(
  vars: nil,
  numVars: integer,
  debugName: string
)
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_REGISTER_HOST_BROADCAST_VARIABLES(Any* vars, int numVars, const char* debugName)
Hash
0x3E9B2F01C50DF595

Open in the interactive natives reference