Chat.activate: Difference between revisions
m (Its not safemode ...) |
m (Replaced HTML with template) |
||
| Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
< | <pre>mp.gui.chat.activate(state);</pre> | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
<pre> | |||
< | |||
mp.gui.chat.activate(true); // Default - Enables the chat | mp.gui.chat.activate(true); // Default - Enables the chat | ||
mp.gui.chat.activate(false); // Disables the chat | mp.gui.chat.activate(false); // Disables the chat | ||
</ | </pre> | ||
}} | |||
==See also== | ==See also== | ||
{{Gui_definition_c}} | {{Gui_definition_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Latest revision as of 13:41, 26 October 2018
This enables or disables the chat with a given boolean.
Syntax
mp.gui.chat.activate(state);
Example
Client-Side
mp.gui.chat.activate(true); // Default - Enables the chat mp.gui.chat.activate(false); // Disables the chat