NetworkClient

networkSetNoSpectatorChat

NETWORK_SET_NO_SPECTATOR_CHAT0xF46A1E03E8755980

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

SignatureJavaScript
networkSetNoSpectatorChat(toggle: boolean): void
SignatureLua
networkSetNoSpectatorChat(toggle: boolean)

Usage

JavaScript
networkSetNoSpectatorChat(toggle);
Lua
networkSetNoSpectatorChat(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_NO_SPECTATOR_CHAT(BOOL toggle)
Hash
0xF46A1E03E8755980

Open in the interactive natives reference