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

Event

onVehicleExit

ServerVehiclesIdentical to MTA:SA

Someone got out of a vehicle (the version seen from the vehicle side).

Handler

addEventHandler("onVehicleExit", root, function(thePlayer, seat, jacker, forcedByScript) ... end)

Parameters

thePlayerplayer
The player.
seatint
Seat.
jackerplayer
The jacker or false.
forcedByScriptbool
Whether by a script.

Source

source is the vehicle.

Example

addEventHandler("onVehicleExit", root, function(player, seat)
    if seat == 0 then setVehicleOverrideLights(source, 1) end
end)

See also