PH_Fuel - Fuel System, EV Charging, Canisters & Station Builder
PH_Fuel is a fuel and electric charging system for FiveM servers.
I started building this because I wanted a fuel script that feels more interactive than just watching a fuel number go down. The goal was to have normal fueling, EV charging, portable canisters, station management, and vehicle-specific fuel behavior inside one resource, while still keeping it configurable for different server setups.
The script supports ESX, QB-Core and QBOX through its framework bridge.
Preview
Video Preview: YouTube Preview ← old Preview
Video Preview: V1.1.0 Preview
Main Features
-
Multiple fuel types:
- Regular
- Premium
- 102 Octane
- E85
- Diesel
- Truck Diesel
- Race Fuel
- Race Diesel
- Electric Charge
-
Electric vehicle support
- EV-only vehicle configuration
- Battery capacity
- Battery state persistence
- Charging station support
- Separate behavior from normal fuel vehicles
-
Vehicle fuel configuration
- Vehicle class defaults
- Model-specific overrides
- Custom tank sizes
- Custom battery sizes
- Allowed fuel types per vehicle
- Configurable consumption behavior
-
Fuel terminal UI
- Select fuel type
- Fill by amount
- Fill by price
- Fill to full tank
- Canister buying/refilling support
-
Hose and nozzle system
- Pick up nozzle
- Attach nozzle to vehicle
- Fuel or charge the vehicle
- Return nozzle after use
-
Portable canisters
- Fuel canisters
- Electric canisters
- Metadata support
- Refillable containers
- In-hand usage
-
Station builder
- Admin command:
/phfuel_createnew - Create custom fuel stations in-game
- Edit existing stations
- Delete stations
- Save station data without restarting the resource
- Admin command:
The station builder saves interaction points, station settings, pump/nozzle positions and related configuration data. It does not include or redistribute Rockstar assets.
Persistence
PH_Fuel saves important data server-side, including:
- Vehicle fuel level
- Vehicle battery level
- Current fuel type
- Tank and battery upgrades
- Canister metadata
- Custom station data
- Nozzle offsets
- Station settings
The script uses oxmysql for database storage.
Integrations
Frameworks
- ESX
- QB-Core
- QBOX
Inventories
- PH_Inventory
- ox_inventory
- qs-inventory
- Custom inventory bridge
Notifications
- ph_notify
- ox_lib
- okokNotify
- Custom notify bridge
Other Dependencies
- ox_lib
- ox_target
- oxmysql
Exports & Developer Hooks
PH_Fuel includes public exports and hook events so other scripts can interact with fuel and battery data.
This can be useful for:
- Garages
- HUDs
- Vehicle shops
- Mechanic jobs
- Dealership systems
- Vehicle status scripts
- Custom economy systems
Export documentation is included with the resource.
Optional / Configurable Systems
- Wrong fuel system foundation
- Tank upgrade framework
- Battery upgrade framework
- Passenger-paid fueling approval flow
- Optional company billing support
- Fuel consumption presets:
- Arcade
- Balanced
- Realistic
- English and German locales included
Performance
PH_Fuel is built around events, callbacks and local interaction checks. It does not use heavy global loops for every player.
Tested performance:
- Idle:
0.00ms - Near a fuel station:
0.01ms-0.05ms - While actively fueling/charging:
0.1ms
Performance can vary depending on server setup, target system, inventory bridge, active NUI usage and the amount of configured stations.
Delivery
PH_Fuel is delivered through Tebex using the official Cfx.re Asset Escrow system.
No external licensing system is required.
Editable files include configuration, locales, bridge files and installation files.
The core resource logic is protected through Cfx.re Asset Escrow.
Included
- Fuel system
- EV charging system
- Fuel terminal NUI
- Hose and nozzle system
- Portable canister system
- Canister terminal support
- Station builder
- Admin tools
- Diagnostics
- Export documentation
- Inventory install files
- Locales
- SQL/install files
Purchase & Support
Price: 14.99€
Tebex: Get PH_Fuel
Support: Discord
Resource Information
| Code is accessible | Partially — config, locales, bridge files and install files are editable. Core logic is protected by Cfx.re Asset Escrow. |
| Subscription-based | No |
| Lines (approximately) | ~18,000 |
| Requirements & dependencies | ESX/QB-Core/QBOX, ox_lib, ox_target, oxmysql, supported inventory |
| Support | Yes |
Preview
- Video: Preview







