VehicleClientNot in this build

isNitrousActive

IS_NITROUS_ACTIVE0x491E822B2C464FE4

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

SignatureJavaScript
isNitrousActive(vehicle: Vehicle): boolean
SignatureLua
isNitrousActive(vehicle: Vehicle): boolean
⚠
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 result = isNitrousActive(vehicle);
Lua
local result = isNitrousActive(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_NITROUS_ACTIVE(Vehicle vehicle)
Hash
0x491E822B2C464FE4
Introduced
Game build 3095 legacy numbering

Open in the interactive natives reference