IS_VEHICLE_STOPPED
Returns true if the vehicle's current speed is less than, or equal to 0.0025f.
Hash
0x78C3311A73135241Runtime name
IsVehicleStoppedNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5721B434AD84D57ASignature
BOOL IS_VEHICLE_STOPPED(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
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
local retval = IsVehicleStopped(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0x78C3311A73135241, vehicle, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsVehicleStopped(vehicle);
// by hash
const retval = Citizen.invokeNative('0x78C3311A73135241', vehicle, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x78C3311A73135241, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.