Chat.activate: Difference between revisions

From RAGE Multiplayer Wiki
m (Wording -> Activate/Deactivate to enable/disable)
m (Its not safemode ...)
Line 8: Line 8:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.safeMode(false); // Disables the chat
mp.gui.chat.activate(false); // Disables the chat
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 21:23, 7 February 2018

This enables or disables the chat with a given boolean.

Syntax

mp.gui.chat.activate(state);

Example

Client-Side
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.activate(false); // Disables the chat

See also