Description
Realistic Fuel System – Detailed Introduction
I. Overview
Realistic Fuel System is an immersive fuel management script designed for the single-player mode of Grand Theft Auto V (GTA5). It simulates realistic fuel tank capacities, fuel consumption, refueling, and manual engine control, while offering highly customizable HUD displays (both text mode and a compact fuel bar mode). The script also integrates with the optional DashHook plugin to output remaining fuel percentage to vehicle dashboards, making it compatible with interior mods that feature working fuel gauges. All vehicle fuel data is persistently saved, so fuel levels are never reset even after restarting the game or loading a save.
II. Prerequisites
This script is built on ScriptHookVDotNet. Please ensure the following dependencies are properly installed before running:
ScriptHookV (visit dev-c com, search for scripthookv)
dinput8 dll (included with ScriptHookV)
ScriptHookVDotNet v3 7 0 nightly 78 or newer (visit scripthookvdotnet nightly releases on github)
NET Framework 4 8 or newer
Note: DashHook is an optional plugin. Version 1 01 has been tested and is compatible; it is not required for the core functionality of this script.
III. Key Features
1.Dynamic Fuel Consumption
Different vehicle classes exhibit unique and realistic fuel consumption characteristics. Sports cars consume noticeably more fuel than regular sedans, while large trucks and helicopters have huge tanks but burn fuel rapidly. The script calculates instantaneous fuel consumption based on real-time speed, engine RPM, and throttle input using a smooth spline interpolation algorithm, delivering a driving experience close to reality instead of using fixed consumption rates.
2.Limited Fuel Tank Capacity
Specific fuel tank capacity (in liters) can be set for each vehicle model in the configuration file. If not specified, a default capacity based on the vehicle class is used. Different vehicles of the same model (e.g., two identical sports cars) can have independent remaining fuel amounts, because each vehicle is uniquely identified by its license plate or model hash. When fuel runs out, the engine forcibly stalls and the vehicle cannot move until refueled.
3.Refueling System
Park the vehicle within a preset gas station area, turn off the engine, and press the refuel key (default T) to start refueling. The process automatically adds 0 8 liters of fuel per second while deducting money from the protagonist based on the daily fuel price (single-player story mode protagonists only). During refueling, you can exit the vehicle and walk around freely. As long as the vehicle is not moved and the engine is not started, refueling will continue. Press the refuel key again to stop manually. Moving the vehicle or starting the engine will automatically interrupt refueling.
4.Daily Fuel Price
The fuel price randomly fluctuates between 3 and 8 each day, just like real-world gas stations where prices change every day, adding a small element of unpredictability to every fill-up. When approaching a gas station, the day’s unit price and operation tips are displayed on screen.
5.Manual Engine Control
A key combination (default Space + Enter) allows you to manually turn off or restart the engine. After manually shutting down, the vehicle remains stationary and consumes no fuel; the same combination must be used again to start. To prevent accidental activation, a 2-second cooldown is implemented.
6.Dual-Mode HUD Display
Text mode (default off): Displays current fuel level, instantaneous fuel consumption, average fuel consumption, estimated range, and optional throttle percentage in the upper-left corner of the screen.
Compact fuel bar mode (default on): Draws a slim fuel bar at the bottom of the screen, with optional tick marks every 5 liters. The bar color gradually transitions from amber to dark red as fuel level decreases.
Press the toggle hotkey (default K) at any time to switch between the two modes. The setting is automatically saved.
7.Vehicle Record and Data Persistence
Remaining fuel, average fuel consumption, and other data for every driven vehicle are saved to the FuelSystem ini configuration file. Even after completely exiting the game and restarting, all vehicle fuel states are fully retained, so you never have to worry about progress loss.
8.DashHook Integration
If the DashHook asi plugin is installed, the script automatically writes the normalized fuel value (0 0 to 1 0) to the vehicle dashboard data, allowing interior mods with functional fuel gauges to display the correct needle position. Additionally, when the remaining fuel drops below 3 liters, the low fuel warning light on the dashboard will illuminate, providing a reminder consistent with real vehicles.
9.High Customizability
By editing FuelSystem ini, you can customize nearly all parameters, including gas station coordinates, fuel tank capacities for specific vehicle models, initial fuel amounts, HUD positions and sizes, key bindings, fuel gauge offsets, and more. Changes take effect immediately by pressing the hot-reload key (default F5) without restarting the game.
IV. Usage Instructions
Engine Start/Stop: Press and hold Space + Enter simultaneously (can be modified in configuration).
Refueling: Park inside a gas station area, ensure the engine is off, then press T to begin refueling. Press T again to stop.
Switch HUD Mode: Press K to toggle between text mode and fuel bar mode.
Reload Configuration: Press F5 to re-read FuelSystem ini for easy parameter adjustment.
Check Fuel Price: Drive near a gas station; today’s fuel price and instructions will automatically appear.
V. Configuration File Explanation (FuelSystem ini)
The configuration file is located in the “scripts” folder inside the game’s root directory. Each section is explained below.
【HUD】
FUEL_BAR: Position and size of the compact fuel bar. Format: X Y Width Height. Default: 0 0755 0 808 0 139 0 006.
FUEL_BAR_SHOW_TICKS: Whether to display tick marks every 5 liters on the bar. 1=Show, 0=Hide.
FUEL, INST, AVG, RANGE, PRICE, THROTTLE: Control the position and scale of fuel level, instantaneous consumption, average consumption, range, fuel price, and throttle HUD elements in text mode. Format for each: X Y Z Scale.
SHOW_THROTTLE_HUD: Whether to display throttle percentage in text mode. 1=Show, 0=Hide.
【Keys】
ReloadHotkey: Virtual key code for reloading configuration. Default: 116 (F5).
EngineToggleKey1: First key in the engine start/stop combination. Default: 32 (Space).
EngineToggleKey2: Second key in the combination. Default: 13 (Enter). Setting this to 0 means only the first key is required.
RefuelKey: Key to start/stop refueling. Default: 84 (T).
FuelBarToggleKey: Key to switch HUD display mode. Default: 75 (K).
【Stations】
One gas station per line. Format: X,Y,Z. The script has 27 built-in gas station coordinates from Los Santos. You can add, remove, or modify them as needed.
【Models】
Used to specify fuel tank capacity for a particular vehicle model.
Format: ModelName=CapacityL
Example: ADDER=90L sets the Adder supercar’s tank to 90 liters.
Vehicle model names must use the game’s internal names (uppercase). When developer mode is enabled, entering a vehicle will display the current model name and hash on screen, making it easy to identify.
【Fuel】
Used to set the initial fuel amount for a specific vehicle.
Format per line: Identifier,ModelName,FuelAmountL
The identifier can be a license plate (uppercase), the model name, the model hash (prefixed with 0x), or a “ModelName_Hash” combination.
Example: 48LFM557,INFERNUS,40 0L means the Infernus with license plate 48LFM557 will start with 40 liters.
For fairness and script stability, it is recommended NOT to manually modify values in this section. The script will automatically maintain the latest data.
【FuelGaugeOffset】
Corrects deviations in the dashboard fuel gauge needle for certain vehicle models.
Format: ModelName=Offset (-1 0 to 1 0)
Example: INFERNUS=-0 05 will reduce the displayed gauge level by 5 percent for the Infernus.
Only takes effect when DashHook is installed and working properly.
【Debug】
DEVELOPER_MODE: 1=Enable developer mode, which shows script status notifications, vehicle model hashes, and other debugging info. Regular players should keep this at 0.
VI. Important Notes
This script is intended for GTA5 story mode only. Usage in GTA Online is strictly prohibited.
Ensure all components listed in the “Prerequisites” section are installed; otherwise, the script will not run.
DashHook asi is an optional plugin and does not affect core functionality. You can ignore it if you do not use DashHook.
After modifying the configuration file, press F5 for instant reload, or restart the game for changes to take effect.
If you do not have enough money while refueling, the process will stop and a notification will appear.
Once the engine stalls due to an empty tank, any attempt to start it will immediately stall again. You must refuel at a gas station to restore driving capability.
Moving the vehicle or starting the engine during refueling will immediately cancel the process. Ensure the vehicle is completely stationary and the engine is off.
Changelog:
V2.0 Update Notes:
1.Fixed an issue where custom fuel capacity would revert to the default maximum. The script will no longer modify any custom settings on its own.
2.Changed the config file generation location: from the main game directory to the “scripts” folder inside it (the same directory where FuelSystem.dll is located).
3.Greatly simplified the config file format. In‑game pop‑up notifications will now only appear when Developer Mode is enabled.
4.Fixed the missing ignition sound when starting the engine. You will now hear the normal start‑up sound.
5.Added compatibility with the DashHook script. The fuel warning light will now turn on when remaining fuel is below 3 liters. Also added a config option for fine‑tuning the fuel gauge pointer.
6.Added a toggle for a compact fuel bar / text display mode. Default key is K, and the keybinding can be customized in the config file.
7.Improved the text prompts at gas stations. Now uses the built‑in game guidance bar for a more integrated, consistent look.
💡 Others also downloaded: Custom Injured State V2.1, Deceased Body Callout, Aidispatch (FOR Policing Redefined) V0.84.4 Alpha.
Author: Lisztdreams
Share Your Gameplay!
Submit a screenshot of this mod!
Submit a YouTube video.

