NetworkClient

networkSetSpectatorToNonSpectatorTextChat

NETWORK_SET_SPECTATOR_TO_NON_SPECTATOR_TEXT_CHAT0x8EF52ACAECC51D9C

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

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

Usage

JavaScript
networkSetSpectatorToNonSpectatorTextChat(toggle);
Lua
networkSetSpectatorToNonSpectatorTextChat(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Network NETWORK
In the game
void NETWORK_SET_SPECTATOR_TO_NON_SPECTATOR_TEXT_CHAT(BOOL toggle)
Hash
0x8EF52ACAECC51D9C
Introduced
Game build 1734 legacy numbering

Open in the interactive natives reference