Chat.activate: Difference between revisions
(Created the page) |
m (Replaced HTML with template) |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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 - | mp.gui.chat.activate(false); // Disables the chat | ||
mp.gui.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