PlayerExitVehicle

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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

Server-Side
Event

C.png C# Js.png JavaScript




C# Syntax
C.png


JavaScript Syntax
Jslogo.png

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