[PAID] [ESCROW] [ESX/QB/QBOX] PH_Fuel - Fuel System, EV Charging, Canisters & Station Builder

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

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

:movie_camera: Preview

1 Like

V1.1.0 UPDATE
Since the Origininal Post has been aprooved now there were some changes in the meantime.

  • Since Version 1.1.0 Fuel Cells are now fully supported with Props that can be attached to the vehicle aswell. (Presets are 10l/20l/30l)
  • Fixed an Issue where the Fuel Canister was stuck on the Characters Hands
  • Fixed and Issue where the Fuel Canister was doubled on the Characters Hands
  • EV Charging is now fully supported
  • Props for the Fuel Cells are included

Very nice script would love to see os version

can you also add helicopter and Aircraft’s

And for the the electric vehicles I didn’t see any

Hey,
what do you mean with os version ? :smiley:

Aircraft Fuel is in the Next Update iam currently working on it.

There is a new Video Coming Later today showing:

  • Electric Vehicle Charging
  • FuelCell installation on Vehicle

Iam currently reworking the EV Charging Prop so in the new Preview might be a Random EV Charger or something like that since iam quite new to the 3D modelling stuff :smiley:

1 Like

Os version I mean open source

Keep the Good work coming

1 Like

Ah i dont know yet about Open Source Versions since i mainly write my Scripts in a way so it stays Highly configurable and keep open what is needed for Server Owners to implement my Scripts into their Servers like:

  • configs
  • Integrations for Banking/Inventorys etc
  • Framework related code

That’s why I like to purchase open source version it’s easy for me to do what I want without asking help from anyone also all my scripts I purchased they all open source good luck with selling bro

1 Like

New Youtube Preview is Online Here Next Patch will include:

  • Aircraft Fuel Types (Helicopters/Planes/Jets)
  • Boat Fueling

Update V1.2.0
This Update is out now and will include the following:

  • Aircraft Fueling (Use /phfuel_createnew command to get into the Station Builder and Place a Dedicated Fuel Pump for it.)
  • Water Based Vehicle Fueling (same command as with Aircraft Fueling)

Bugfixes

  • NPC Vehicles ran out of fuel aswell. Now the do not anymore since PH_Fuel looks now if a Player Ped is Driving the Vehicle
  • Getting and Setting Fuel is now more precise when Parking the Vehicle into Garages
  • Random Weird behavior when Vehicle gets low on Fuel is fixed now. (Now when the Vehicle runs low on Fuel it continues to drive normally and the Engine shuts off at 0.00l
  • Fixed some Translation Errors.

Quick Sidenote:
When you Edit an existing Gas Station you can place a Aircraft/Boat Fueling Pump in that already existing Gas Staion. that will be coming in Handy later on when PH_Fuel has Ownable Gas Stations as a DLC :wink: