SetOverrideNitrousLevel
DocsSetOverrideNitrousLevel(vehicle, override)Description
NativeDB Added Parameter 2 (2060): float durationMod : A multiplier applied to the default nitrous duration (default is 3 seconds).
NativeDB Added Parameter 3 (2060): float power : A multiplier applied to the default nitrous power multiplier (default is 3).
NativeDB Added Parameter 4 (2060): float rechargeTime : A multiplier applied to the default nitrous recharge rate.
NativeDB Added Parameter 5 (2060): BOOL disableSound : A boolean to disable the default nitrous sound when the nitrous is active.
Overrides the default settings of a vehicle's nitrous system, allowing custom control over its performance characteristics.
Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle whose nitrous system is to be overridden. |
override | BOOL | A boolean toggle to enable or disable the override settings. |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
voidThis native does not return a value.
Examples
-- Retrieve the player ped
local playerPed = PlayerPedId()
-- Retrieve the vehicle the player is currently in.
local vehicle = GetVehiclePedIsIn(playerPed, false)
-- Check if the vehicle exists in the game world.
if vehicle == 0 then return end
-- Configure the vehicle's nitrous system with custom settings for maximum effect.
SetOverrideNitrousLevel(vehicle, true, 100, 100, 99999999999, false);