Player::outputChatBox: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This functions writes a chat message to player. == Syntax == <syntaxhighlight lang="javascript"> player.outputChatBox(String reason); </syntaxhighlight> == Example == This exa...")
 
No edit summary
Line 11: Line 11:
});
});
</syntaxhighlight>
</syntaxhighlight>
==See Also==
{{Player_block}}

Revision as of 13:41, 17 April 2017

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