RedM Natives

BRING_VEHICLE_TO_HALT

This native makes the vehicle stop immediately distance defines how far it will travel until stopping.

Hash0x260BE8F09E326A20
Runtime nameBringVehicleToHalt
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x260BE8F09E326A20

Signature

void BRING_VEHICLE_TO_HALT(Vehicle vehicle, float distance, int duration, BOOL unknown);

Parameters

NameTypeDescription
vehicleVehicle—
distancefloat—
durationint—
unknownBOOL—

Returns void

Description

This native makes the vehicle stop immediately

distance defines how far it will travel until stopping.

Usage

Lua
BringVehicleToHalt(vehicle, distance, duration, unknown)

-- always works, by hash
Citizen.InvokeNative(0x260BE8F09E326A20, vehicle, distance, duration, unknown)
JavaScript and C#
JavaScript
BringVehicleToHalt(vehicle, distance, duration, unknown);

// by hash
Citizen.invokeNative('0x260BE8F09E326A20', vehicle, distance + 0.0000001, duration, unknown);
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.