From Multi Theft Auto: Wiki
Jump to: navigation, search

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


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


The source of this event is the vehicle that the player started to exit.


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.")
addEventHandler("onClientVehicleStartExit", getRootElement(), exitingVehicle)

See Also

Client vehicle events

Client event functions