onClientPlayerVehicleEnter
ClientEvent
Fired on the client when a player has finished getting into a vehicle.
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
addEventHandler("onClientPlayerVehicleEnter", localPlayer, function(vehicle, seat)
if seat == 0 then
outputDebugString("You took the wheel")
end
end)