Chat.push: Difference between revisions
(Created page with "==Syntax== <syntaxhighlight lang="javascript">mp.gui.chat.push(text);</syntaxhighlight> === Required Arguments === *'''text:''' String text ===Return value=== Unknown ==Exampl...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Sends a chat message to the player. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">mp.gui.chat.push(text);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.gui.chat.push(text);</syntaxhighlight> | ||
Revision as of 20:48, 29 September 2017
Sends a chat message to the player.
Syntax
mp.gui.chat.push(text);
Required Arguments
- text: String text
Return value
Unknown
Example
Client-Side
mp.events.add('playerDeath', (player) => {
mp.gui.chat.push("You !{Red}died!");
});