NetworkClientNot in this build

networkDisableRealtimeMultiplayerSpectator

NETWORK_DISABLE_REALTIME_MULTIPLAYER_SPECTATOR

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

SignatureJavaScript
networkDisableRealtimeMultiplayerSpectator(): void
SignatureLua
networkDisableRealtimeMultiplayerSpectator()
⚠
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
networkDisableRealtimeMultiplayerSpectator();
Lua
networkDisableRealtimeMultiplayerSpectator()

Parameters

None.

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_DISABLE_REALTIME_MULTIPLAYER_SPECTATOR()

Open in the interactive natives reference