VehicleClient

isVehicleStopped

IS_VEHICLE_STOPPED0x5721B434AD84D57A

The GTA V native IS_VEHICLE_STOPPED of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleStopped, in JavaScript and in Lua.

SignatureJavaScript
isVehicleStopped(vehicle: Vehicle): boolean
SignatureLua
isVehicleStopped(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleStopped(vehicle);
Lua
local result = isVehicleStopped(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_STOPPED(Vehicle vehicle)
Hash
0x5721B434AD84D57A

Open in the interactive natives reference