- Documentation
- Server events
- onVehicleStartExit
Event
onVehicleStartExit
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)