VehicleClientNot in this build

setRemainingNitrousDuration

_SET_REMAINING_NITROUS_DURATION0x1AD0F63A94E10EFF

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

SignatureJavaScript
setRemainingNitrousDuration(vehicle: Vehicle, duration: number): void
SignatureLua
setRemainingNitrousDuration(vehicle: Vehicle, duration: 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
setRemainingNitrousDuration(vehicle, duration);
Lua
setRemainingNitrousDuration(vehicle, duration)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
durationfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void _SET_REMAINING_NITROUS_DURATION(Vehicle vehicle, float duration)
Hash
0x1AD0F63A94E10EFF
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference