# onClientPlayerVehicleExit (Client)

> Fired on the client when a player leaves a vehicle.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Event
- **Side**: Client
- **Category**: Vehicles
- **URL**: https://wiki.mymp.gg/en/onClientPlayerVehicleExit

## Syntax

```lua
addEventHandler("onClientPlayerVehicleExit", root, function(vehicle vehicle, int seat, ped|false jacker) ... end)
```

## Handler parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |
| `seat` | `int` | The seat: 0 is the driver's, 1 onwards the passengers'. |
| `jacker` | `ped\|false` | The ped that pulled it out, or `false`. |

## Source

The player.

It also fires when the ped falls off a bike, is pulled out, dies or is taken out by `removePedFromVehicle`.

## Example

```lua
addEventHandler("onClientPlayerVehicleExit", localPlayer, function(vehicle, seat, jacker)
    if jacker then
        outputDebugString("You were pulled out of the car")
    end
end)
```

## See also

- [onClientPlayerVehicleEnter (Client)](https://wiki.mymp.gg/en/onClientPlayerVehicleEnter.md): Fired on the client when a player has finished getting into a vehicle.
- [onClientVehicleExit (Client)](https://wiki.mymp.gg/en/onClientVehicleExit.md): Fired on the client when a ped leaves a vehicle.
- [onClientPedVehicleExit (Client)](https://wiki.mymp.gg/en/onClientPedVehicleExit.md): Fired on the client when a ped (not a player) leaves a vehicle.
- [onPlayerVehicleExit (Server)](https://wiki.mymp.gg/en/onPlayerVehicleExit.md): Fired on the server when a player leaves a vehicle.
