NetworkClientBlocked

setNetworkIdCanMigrate

SET_NETWORK_ID_CAN_MIGRATE0x299EEB23175895FC

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

SignatureJavaScript
setNetworkIdCanMigrate(netId: number, toggle: boolean): void
SignatureLua
setNetworkIdCanMigrate(netId: integer, toggle: boolean)
✕
Blocked for scripts: Rockstar online sessions and content

LS:MP runs its own networking: scripts do not join, host or transition Rockstar sessions, or fetch Rockstar's user content and remote files.

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 SET_NETWORK_ID_CAN_MIGRATE(int netId, BOOL toggle)
Hash
0x299EEB23175895FC

Open in the interactive natives reference