setRemainingNitrousDuration
_SET_REMAINING_NITROUS_DURATION0x1AD0F63A94E10EFFThe 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.
setRemainingNitrousDuration(vehicle: Vehicle, duration: number): voidsetRemainingNitrousDuration(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
duration | float | number | number |
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