Chat.colors: Difference between revisions
MrPancakers (talk | contribs) (updated template) |
m (Replaced HTML with template) |
||
| Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
< | <pre>Boolean mp.gui.chat.colors</pre> | ||
== | ==Required Arguments== | ||
*state: <b><font color='green'>Boolean</font></b> | *state: <b><font color='green'>Boolean</font></b> | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
<pre> | |||
< | |||
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) | ||
</ | </pre> | ||
}} | |||
==See also== | ==See also== | ||
{{Gui_definition_c}} | {{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)