Chat.activate: Difference between revisions

From RAGE Multiplayer Wiki
(Created the page)
 
m (Wording -> Activate/Deactivate to enable/disable)
Line 7: Line 7:
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.gui.chat.activate(true); // Default - Activates the chat
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.safeMode(false); // Deactivates the chat
mp.gui.chat.safeMode(false); // Disables the chat
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 21:21, 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.safeMode(false); // Disables the chat

See also