-- 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
-- Check if nitrous is active on the vehicle.
if IsNitrousActive(vehicle) then
-- If nitrous is active, clear the nitrous boost from the vehicle.
ClearNitrous(vehicle)
end