Chat.push: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 17: Line 17:


==See also==
==See also==
{{Chat_s_function_c}}
{{Chat_functions}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Revision as of 15:53, 21 November 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!");
});

See also