Player::outputChatBox: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
{{Serverside}}
This functions writes a chat message to player.
This functions writes a chat message to player.
== Syntax ==
== Syntax ==

Revision as of 23:32, 3 May 2017

This functions writes a chat message to player.

Syntax

player.outputChatBox(reason);

Arguments

  • reason - string

Example

This example welcomes player on connect.

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

See Also