# onClientPlayerVehicleEnter (Client)

> Fired on the client when 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/onClientPlayerVehicleEnter

## Syntax

```lua
addEventHandler("onClientPlayerVehicleEnter", 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 player.

## Example

```lua
addEventHandler("onClientPlayerVehicleEnter", localPlayer, function(vehicle, seat)
    if seat == 0 then
        outputDebugString("You took the wheel")
    end
end)
```

## See also

- [onClientPlayerVehicleExit (Client)](https://wiki.mymp.gg/en/onClientPlayerVehicleExit.md): Fired on the client when 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.
- [onClientPedVehicleEnter (Client)](https://wiki.mymp.gg/en/onClientPedVehicleEnter.md): Fired on the client when a ped (not a player) has finished getting into a vehicle.
- [onPlayerVehicleEnter (Server)](https://wiki.mymp.gg/en/onPlayerVehicleEnter.md): Fired on the server when a player has finished getting into a vehicle.
