Player::outputChatBox

From RAGE Multiplayer Wiki
Revision as of 13:41, 17 April 2017 by CocaColaBear (talk | contribs)

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 + '!');
});

See Also