Chat.push: Difference between revisions
Silverdark (talk | contribs) No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
==See also== | ==See also== | ||
{{ | {{Gui_definition_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Revision as of 14:17, 15 January 2018
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!");
});