Chat.colors: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property toggles the chat colors. If disabled you'll find the color codes. ==Syntax== <syntaxhighlight lang="javascript">mp.gui.chat.colors = state;</syntaxhighlight> =...")
 
m (Replaced HTML with template)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.gui.chat.colors = state;</syntaxhighlight>
<pre>Boolean mp.gui.chat.colors</pre>


=== '''Required Arguments:''' ===
==Required Arguments==


*state: <b><font color='green'>Boolean</font></b>
*state: <b><font color='green'>Boolean</font></b>


==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.colors = true; // Activates the colors.
mp.gui.chat.colors = true; // Activates the colors.
mp.gui.chat.colors = false; // Default - Disables the colors (Colors isn't allowed)
mp.gui.chat.colors = false; // Default - Disables the colors (Colors isn't allowed)
</syntaxhighlight>
</pre>
</div>
}}


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

Latest revision as of 13:37, 26 October 2018

This property toggles the chat colors. If disabled you'll find the color codes.

Syntax

Boolean mp.gui.chat.colors

Required Arguments

  • state: Boolean

Example

Client-Side
mp.gui.chat.colors = true; // Activates the colors.
mp.gui.chat.colors = false; // Default - Disables the colors (Colors isn't allowed)

See also