BRING_VEHICLE_TO_HALT
This native makes the vehicle stop immediately distance defines how far it will travel until stopping.
Hash
0x260BE8F09E326A20Runtime name
BringVehicleToHaltNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x260BE8F09E326A20Signature
void BRING_VEHICLE_TO_HALT(Vehicle vehicle, float distance, int duration, BOOL unknown);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
distance | float | — |
duration | int | — |
unknown | BOOL | — |
Returns void
Description
This native makes the vehicle stop immediately
distance defines how far it will travel until stopping.
Usage
BringVehicleToHalt(vehicle, distance, duration, unknown)
-- always works, by hash
Citizen.InvokeNative(0x260BE8F09E326A20, vehicle, distance, duration, unknown)JavaScript and C#
BringVehicleToHalt(vehicle, distance, duration, unknown);
// by hash
Citizen.invokeNative('0x260BE8F09E326A20', vehicle, distance + 0.0000001, duration, unknown);Function.Call((Hash)0x260BE8F09E326A20, vehicle, distance, duration, unknown);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.