setNetworkIdAlwaysExistsForPlayer
SET_NETWORK_ID_ALWAYS_EXISTS_FOR_PLAYER0xA8A024587329F36AThe GTA V native SET_NETWORK_ID_ALWAYS_EXISTS_FOR_PLAYER of the NETWORK namespace, as LS:MP client scripts call it: the global function setNetworkIdAlwaysExistsForPlayer, in JavaScript and in Lua.
setNetworkIdAlwaysExistsForPlayer(
netId: number,
player: Player,
toggle: boolean
): voidsetNetworkIdAlwaysExistsForPlayer(
netId: integer,
player: Player,
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_ALWAYS_EXISTS_FOR_PLAYER(int netId, Player player, BOOL toggle)- Hash
0xA8A024587329F36A- Formerly
_SET_NETWORK_ID_SYNC_TO_PLAYER