Chat.show: Difference between revisions
(Created page with "==Syntax== <syntaxhighlight lang="javascript">mp.gui.chat.show(toggle);</syntaxhighlight> === Required Arguments === *'''toggle:''' Bool toggle ===Return value=== Unknown ==Ex...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Toggles the chat visibility. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">mp.gui.chat.show(toggle);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.gui.chat.show(toggle);</syntaxhighlight> | ||
Revision as of 20:48, 29 September 2017
Toggles the chat visibility.
Syntax
mp.gui.chat.show(toggle);
Required Arguments
- toggle: Bool toggle
Return value
Unknown
Example
Client-Side
mp.events.add('playerDeath', (player) => {
//Hide chat when player dies
mp.gui.chat.show(false);
});