Chat.activate: Difference between revisions

From RAGE Multiplayer Wiki
m (Its not safemode ...)
m (Replaced HTML with template)
 
Line 2: Line 2:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.gui.chat.activate(state);</syntaxhighlight>
<pre>mp.gui.chat.activate(state);</pre>
 
==Example==
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
{{ClientsideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.activate(true); // Default - Enables the chat
mp.gui.chat.activate(false); // Disables the chat
mp.gui.chat.activate(false); // Disables the chat
</syntaxhighlight>
</pre>
</div>
}}


==See also==
==See also==
{{Gui_definition_c}}
{{Gui_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Latest revision as of 13:41, 26 October 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