Chat.safeMode: Difference between revisions

From RAGE Multiplayer Wiki
m (Replaced HTML with template)
Line 3: Line 3:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.gui.chat.safeMode = state;</syntaxhighlight>
<pre>Boolean mp.gui.chat.safeMode</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.safeMode = true; // Default - Activates the safe mode
mp.gui.chat.safeMode = true; // Default - Activates the safe mode
mp.gui.chat.safeMode = false; // Deactivates the safe mode (HTML is allowed)
mp.gui.chat.safeMode = false; // Deactivates the safe mode (HTML is allowed)
</syntaxhighlight>
</pre>
</div>
}}


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

Revision as of 13:36, 26 October 2018

This property toggles the chat safe mode. When the safe mode is deactivated (safe mode false) then you can use HTML in the chat.

Syntax

Boolean mp.gui.chat.safeMode

Example

Client-Side
mp.gui.chat.safeMode = true; // Default - Activates the safe mode
mp.gui.chat.safeMode = false; // Deactivates the safe mode (HTML is allowed)

See also