VehicleClientNot in this build

getRemainingNitrousDuration

_GET_REMAINING_NITROUS_DURATION0xBEC4B8653462450E

The 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.

SignatureJavaScript
getRemainingNitrousDuration(vehicle: Vehicle): number
SignatureLua
getRemainingNitrousDuration(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

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Vehicle VEHICLE
In the game
float _GET_REMAINING_NITROUS_DURATION(Vehicle vehicle)
Hash
0xBEC4B8653462450E
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference