PlayerJoin

From RAGE Multiplayer Wiki
Revision as of 11:31, 28 December 2016 by Niks (talk | contribs)

This event is triggered when a player joins the server.

Parameters

  • player - player, which joined to the server.

Example

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

Server-side

<div class="content" style="background-color: #E4F1FE; color: #4183D7; width: 100%; border: 2px solid #81CFE0; padding: 5px;"


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

  mp.events.add({
    "playerJoin": playerJoinHandler

  });