M MY Multiplayer: Wiki
Side
Kind

onClientPlayerVehicleExit

ClientEvent

Fired on the client when a player leaves a vehicle.

addEventHandler("onClientPlayerVehicleExit", root, function(vehicle vehicle, int seat, ped|false jacker) … end)

Handler parameters

NameTypeDescription
vehiclevehicleThe vehicle.
seatintThe seat: 0 is the driver's, 1 onwards the passengers'.
jackerped|falseThe ped that pulled it out, or false.

Source

The player.

It also fires when the ped falls off a bike, is pulled out, dies or is taken out by removePedFromVehicle.

Example

addEventHandler("onClientPlayerVehicleExit", localPlayer, function(vehicle, seat, jacker)
    if jacker then
        outputDebugString("You were pulled out of the car")
    end
end)

See also