PlayerJoin

From RAGE Multiplayer Wiki
Revision as of 22:01, 27 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

<thead> </thead> <tbody> </tbody>
Server-side
      function playerJoinHandler(player) {
        console.log(player.name + " join.");
      }

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

      });