# onClientPedVehicleEnter (Client)

> Fired on the client when a ped (not a player) has finished getting into a vehicle.

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

## Syntax

```lua
addEventHandler("onClientPedVehicleEnter", root, function(vehicle vehicle, int seat) ... end)
```

## Handler parameters

| Name | Type | Description |
| --- | --- | --- |
| `vehicle` | `vehicle` | The vehicle. |
| `seat` | `int` | The seat: 0 is the driver's, 1 onwards the passengers'. |

## Source

The ped.

## Example

```lua
addEventHandler("onClientPedVehicleEnter", root, function(vehicle, seat)
    outputDebugString("Ped entered seat " .. seat)
end)
```

## See also

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