PlayerExitVehicle
This event is triggered when a player went out from a vehicle.
Server-Side Event
C# | JavaScript |
---|
C# Syntax
See OnPlayerExitVehicle.
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
- playerChat
- playerCommand
- playerDamage
- playerDeath
- playerJoin
- playerQuit
- playerReady
- playerSpawn
- playerWeaponChange
Streaming
Vehicle
- playerStartEnterVehicle
- playerEnterVehicle
- playerStartExitVehicle
- playerExitVehicle
- trailerAttached
- vehicleDamage
- vehicleDeath
- vehicleHornToggle
- vehicleSirenToggle