RedM Natives

IS_VEHICLE_STOPPED

Returns true if the vehicle's current speed is less than, or equal to 0.0025f.

Hash0x78C3311A73135241
Runtime nameIsVehicleStopped
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5721B434AD84D57A

Signature

BOOL IS_VEHICLE_STOPPED(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns BOOL

Description

Returns true if the vehicle's current speed is less than, or equal to 0.0025f.

For some vehicles it returns true if the current speed is <= 0.00039999999.

Usage

Lua
local retval = IsVehicleStopped(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x78C3311A73135241, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsVehicleStopped(vehicle);

// by hash
const retval = Citizen.invokeNative('0x78C3311A73135241', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x78C3311A73135241, vehicle);

Sources

alloc8or RDR3 NativeDB

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