Chat.safeMode: Difference between revisions

From RAGE Multiplayer Wiki
m (Replaced HTML with template)
No edit summary
 
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==
<pre>Boolean mp.gui.chat.safeMode</pre>
<pre>mp.gui.chat.safeMode = toggle;</pre>


==Example==
==Example==
{{ClientsideCode|
<pre>
<pre>
mp.gui.chat.safeMode = true; // Default - Activates the safe mode
mp.gui.chat.safeMode = true; // Default - Activates the safe mode

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