Impact Dynamics / Features

Leaking fuel tank

The fuel tank uses GTA's own petrol tank health (1000 = fine). Shooting the tank already lowers it; Impact Dynamics adds crash damage on top:

  • Heavy and severe hits damage the tank: heavy 90-220 and severe 220-480 tank health, taken in full from the rear (where the tank sits), 80 % from below, 40 % from the sides and 10 % from the front.
  • Under a tank health of 700 the tank leaks: the fuel level drops while you drive, faster the worse the tank. One severe rear or underside hit can start a leak by itself; lighter hits add up.
  • The driver gets "Fuel leak - The tank is leaking - you are losing fuel" once.
  • Crashes never take the tank below 350, so GTA's own tank fire is left to gunfire.
  • Electric cars and bicycles never leak.

A full repair with your mechanic script (SetVehicleFixed) restores the tank. If your mechanic script repairs in another way, set the tank back with SetVehiclePetrolTankHealth(vehicle, 1000.0).

Works with your fuel script

The leak lowers the real fuel level of your fuel script, so its HUD and pumps stay right. Detected automatically: lc_fuel, ox_fuel, LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, okokGasStation, qs-fuelstations. Any other script with GetFuel / SetFuel exports works when you set Config.Fuel.System to its resource name. Without a fuel script, GTA's own fuel level is used.

See Fuel scripts. Configure it in Fuel.

Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.