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

Event

onPlayerVehicleExit

ServerVehiclesIdentical to MTA:SA

A player got out of a vehicle (by themselves, jacked or by a script).

Handler

addEventHandler("onPlayerVehicleExit", root, function(theVehicle, seat, jacker, forcedByScript) ... end)

Parameters

theVehiclevehicle
The vehicle.
seatint
Seat.
jackerplayer
Who jacked them or false.
forcedByScriptbool
true when a script removed them.

Source

source is the player.

Example

addEventHandler("onPlayerVehicleExit", root, function(veh, seat, jacker)
    if jacker then outputChatBox(getPlayerName(jacker) .. " ukradł ci auto!", source) end
end)

See also