onClientVehicleStartExit | Multi Theft Auto: Wiki Skip to content

onClientVehicleStartExit

Client-side
Server-side
Shared

This event is triggered when a ped or player starts exiting a vehicle. Once the exiting animation completes, onClientVehicleExit is triggered.

Parameters

ped thePed, int seat, int door
  • thePed: the ped who started exiting the vehicle.
  • seat: the number of the seat that the ped was sitting on.
  • door: the number of the door that the ped is using to leave.

Source

element: The source of this event is the vehicle that the ped started to exit.

Code Examples

client

This example outputs to the player that he's leaving the drivers seat.

function exitingVehicle(player, seat, door)
if (seat==0) and (door==0) then
outputChatBox("You are leaving the drivers seat.")
end
end
addEventHandler("onClientVehicleStartExit", getRootElement(), exitingVehicle)

See Also

Vehicle Functions