VehicleClient

isVehicleStuckTimerUp

IS_VEHICLE_STUCK_TIMER_UP0x679BE1DAF71DA874

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

SignatureJavaScript
isVehicleStuckTimerUp(vehicle: Vehicle, p1: number, ms: number): boolean
SignatureLua
isVehicleStuckTimerUp(vehicle: Vehicle, p1: integer, ms: integer): boolean

Usage

JavaScript
const result = isVehicleStuckTimerUp(vehicle, p1, ms);
Lua
local result = isVehicleStuckTimerUp(vehicle, p1, ms)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1intnumberinteger
msintnumberinteger

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.

p1 can be anywhere from 0 to 3 in the scripts.
p2 being how long in milliseconds the vehicle has been stuck

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_STUCK_TIMER_UP(Vehicle vehicle, int p1, int ms)
Hash
0x679BE1DAF71DA874

Open in the interactive natives reference