PlayerJoin

From RAGE Multiplayer Wiki
Revision as of 20:04, 18 September 2017 by CurtisVL (talk | contribs) (Fixed some English, and updated border around Example)

This event is triggered when a player joins the server.

Parameters

  • player - player which joined the server.

Example

This example outputs chat message, when player joins to the server.

Server-Side
  function playerJoinHandler(player) {
    console.log(player.name + " join.");
  }

  mp.events.add("playerJoin", playerJoinHandler);

See also