PlayerLeftVehicle

From RAGE Multiplayer Wiki
Revision as of 20:39, 15 October 2017 by CocaColaBear (talk | contribs)

This event is triggered when a player lefts a vehicle.

Parameters

  • player - player, which left the vehicle
  • vehicle - vehicle, which was left by the player.

Example

This example outputs a console chat message, when player lefts a vehicle.

Server-Side
  function playerLeftVehicle(player, vehicle) {
    console.log(`${player.name} left from vehicle with ID: ${vehicle.id}`);
  }

  mp.events.add("playerLeftVehicle", playerLeftVehicle);

See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint