getRemainingNitrousDuration
_GET_REMAINING_NITROUS_DURATION0xBEC4B8653462450EThe GTA V native _GET_REMAINING_NITROUS_DURATION of the VEHICLE namespace, as LS:MP client scripts call it: the global function getRemainingNitrousDuration, in JavaScript and in Lua.
getRemainingNitrousDuration(vehicle: Vehicle): numbergetRemainingNitrousDuration(vehicle: Vehicle): number⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
const value = getRemainingNitrousDuration(vehicle);Lua
local value = getRemainingNitrousDuration(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Vehicle VEHICLE
- In the game
float _GET_REMAINING_NITROUS_DURATION(Vehicle vehicle)- Hash
0xBEC4B8653462450E- Introduced
- Game build 3095 legacy numbering