PlayerQuit

From RAGE Multiplayer Wiki
Revision as of 21:37, 27 December 2016 by Niks (talk | contribs)

This event is triggered when a player quit from the server.

Parameters

  • player - player, which quit from the server.
  • exitType - exit type from the server:
 * disconnect
 * timeout
 * kicked
  • reason - reason of quit from the server.

Example

function playerJoinHandler(player) {
  console.log(player.name + " joined to server.");
}

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

});