bringVehicleToHalt
BRING_VEHICLE_TO_HALT0x260BE8F09E326A20The GTA V native BRING_VEHICLE_TO_HALT of the VEHICLE namespace, as LS:MP client scripts call it: the global function bringVehicleToHalt, in JavaScript and in Lua.
bringVehicleToHalt(
vehicle: Vehicle,
distance: number,
duration: number,
p3: boolean
): voidbringVehicleToHalt(
vehicle: Vehicle,
distance: number,
duration: integer,
p3: boolean
)Usage
JavaScript
bringVehicleToHalt(vehicle, distance, duration, p3);Lua
bringVehicleToHalt(vehicle, distance, duration, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
distance | float | number | number |
duration | int | number | integer |
p3 | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native makes the vehicle stop immediately, as happens when we enter a MP garage.
. distance defines how far it will travel until stopping. Garage doors use 3.0.
. If killEngine is set to 1, you cannot resume driving the vehicle once it stops. This looks like is a bitmapped integer.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void BRING_VEHICLE_TO_HALT(Vehicle vehicle, float distance, int duration, BOOL p3)- Hash
0x260BE8F09E326A20- Formerly
_SET_VEHICLE_HALT