onClientPedVehicleEnter
ClientEvent
Fired on the client when a ped (not a player) has finished getting into a vehicle.
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
addEventHandler("onClientPedVehicleEnter", root, function(vehicle, seat)
outputDebugString("Ped entered seat " .. seat)
end)