The animation is started if the vehicle is set to “need hotwiring” natively

you can use:

IsVehicleNeedsToBeHotwired(veh)

it will return TRUE if the veh is set to need hotwiring, so you can check before hand (though it may not be necessary to check)

you can use:

SetVehicleNeedsToBeHotwired(vehicle, false)

when the person is getting in the car to disable the natural hotwiring system.

you can use:

if DoesEntityExist(GetVehiclePedIsTryingToEnter(PlayerPedId())) then --is player entering a vehicle

to detect if the ped is currently getting in a vehicle

edit: made more simple example

actually, i made it a mod. ill add a release thread:

2 Likes