PlayerExitVehicle

From RAGE Multiplayer Wiki

This event is triggered when a player went out from a vehicle.

Server-Side
Event

 C#  JavaScript




C# Syntax


JavaScript Syntax

Parameters

  • player: Player - player, which left the vehicle
  • vehicle: Vehicle - vehicle, which was left by the player.

Example

This example outputs a console chat message, when player went out from vehicle.

function playerExitVehicleHandler(player, vehicle) {
    console.log(`${player.name} when out from vehicle with ID: ${vehicle.id}`);
}

mp.events.add("playerExitVehicle", playerExitVehicleHandler);


See also

Checkpoint

Colshape

Entity

Player

Streaming

Vehicle

Waypoint