Chat.safeMode: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This property toggles the chat safe mode.
{{JSContainer|
When the safe mode is deactivated (safe mode false) then you can use HTML in the chat.
This property toggles the chat safe mode. When the safe mode is deactivated (safe mode false), HTML can be used in the chat.


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.gui.chat.safeMode = state;</syntaxhighlight>
<pre>mp.gui.chat.safeMode = toggle;</pre>
 
==Example==
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<pre>
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<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]]

Latest revision as of 11:35, 2 November 2024

JavaScript Syntax

This property toggles the chat safe mode. When the safe mode is deactivated (safe mode false), HTML can be used in the chat.

Syntax

mp.gui.chat.safeMode = toggle;

Example

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


See also