-- 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
-- Set nitrous modifications with SET_OVERRIDE_NITROUS_LEVEL since this native require a durationMod to be specified.
SetOverrideNitrousLevel(vehicle, true, 1.5, 2.0, 0.5, false)
-- After setting the modifiers, fully recharge the nitrous system to the new max defined.
FullyChargeNitrous(vehicle)