BRING_VEHICLE_TO_HALT
0x260BE8F09E326A20
0xCBC7D3C8
// BringVehicleToHalt
void BRING_VEHICLE_TO_HALT(Vehicle vehicle, float distance, int duration, BOOL bControlVerticalVelocity);
Parameters:- vehicle:
The vehicle to stop.
- distance:
The distance from the initial coords at which the vehicle should come to rest.
- duration:
The length of time in seconds to hold the car at rest after stopping.
- bControlVerticalVelocity:
false
by default which allows gravity to act normally in the z direction. Enable this option to halt the vehicle's vertical velocity as well.
This native makes the vehicle stop immediately, as it happens when we enter a multiplayer garage.
Old name: _SET_VEHICLE_HALT