onClientPedVehicleExit
ClientEvent
Fired on the client when a ped (not a player) leaves a vehicle.
addEventHandler("onClientPedVehicleExit", root, function(vehicle vehicle, int seat, ped|false jacker) … end)
Handler parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The vehicle. |
| seat | int | The seat: 0 is the driver's, 1 onwards the passengers'. |
| jacker | ped|false | The ped that pulled it out, or false. |
Source
The ped.
It also fires when the ped falls off a bike, is pulled out, dies or is taken out by removePedFromVehicle.
Example
addEventHandler("onClientPedVehicleExit", root, function(vehicle, seat)
outputDebugString("Ped left seat " .. seat)
end)