Player::outputChatBox

From RAGE Multiplayer Wiki
Revision as of 16:52, 4 January 2017 by Niks (talk | contribs) (Created page with "This functions writes a chat message to player. == Syntax == <syntaxhighlight lang="javascript"> player.outputChatBox(String reason); </syntaxhighlight> == Example == This exa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This functions writes a chat message to player.

Syntax

player.outputChatBox(String reason);

Example

This example welcomes player on connect.

mp.events.add('playerJoin', player => {
  player.outputChatBox('Welcome to the server, ' + player.name + '!');
});