# onClientVehicleExit (Client)

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

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

## Syntax

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

## Handler parameters

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

## Source

The vehicle.

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

## Example

```lua
addEventHandler("onClientVehicleExit", root, function(ped, seat, jacker)
    if ped == localPlayer and jacker then
        outputDebugString("Your car was stolen")
    end
end)
```

## See also

- [onClientVehicleStartExit (Client)](https://wiki.mymp.gg/en/onClientVehicleStartExit.md): Fired on the client when a ped starts getting out of a vehicle. Cancelling the event stops it.
- [onClientVehicleEnter (Client)](https://wiki.mymp.gg/en/onClientVehicleEnter.md): Fired on the client when a ped has finished getting into a vehicle.
- [onClientPlayerVehicleExit (Client)](https://wiki.mymp.gg/en/onClientPlayerVehicleExit.md): Fired on the client when a player leaves a vehicle.
- [onVehicleExit (Server)](https://wiki.mymp.gg/en/onVehicleExit.md): Fired on the server when a ped leaves a vehicle.
