ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server events
  3. onVehicleStartExit

Event

onVehicleStartExit

ServerVehiclesIdentical to MTA:SA

A player starts getting out (about 2 seconds before onVehicleExit); when jacked, jacker is the one pulling them out. You can keep them in the car.

Handler

addEventHandler("onVehicleStartExit", root, function(exitingPlayer, seat, jacker, door) ... end)

Parameters

exitingPlayerplayer
The player.
seatint
Seat.
jackerplayer
The jacker or false.
doorint
Door.

Source

source is the vehicle.

cancelEvent() keeps the player in the car.

Example

addEventHandler("onVehicleStartExit", root, function(player)
    if getElementData(player, "zakuty") then cancelEvent() end
end)

See also