Difference between revisions of "OnPlayerStartEnterVehicle"
From Onset Developer Wiki
|Line 17:||Line 17:|
Latest revision as of 10:42, 16 January 2020
Called when a player presses the key to start entering a vehicle. You can return false in this event to stop the player from entering.
The vehicle identifier.
The vehicle seat in which the player tries to get in.
AddEvent("OnPlayerStartEnterVehicle", function(vehicleId, seatId) if seatId == 0 then print("Entered as a driver.") end end)