isVehicleStopped
IS_VEHICLE_STOPPED0x5721B434AD84D57AThe 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.
isVehicleStopped(vehicle: Vehicle): booleanisVehicleStopped(vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleStopped(vehicle);Lua
local result = isVehicleStopped(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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