About
Description
Code9 Fuel System is a realistic fuel management system for FiveM. It features physical nozzle and rope interaction at gas stations, 4 fuel types with separate pricing, electric vehicle support, a payment UI, jerry can system, per-vehicle-class consumption rates, and exported functions for integration — all fully configurable.
Key Features
Realistic Gas Station Interaction
- Physical nozzle prop attached to the gas pump with rope physics
- Walk to the vehicle and attach the nozzle to the fuel tank bone
- Automatic fuel tank bone detection (supports cars and motorcycles)
- Rope detaches if pulled too far from the pump
4 Fuel Types
- Diesel — Standard diesel fuel
- Economic — Budget-friendly option
- Super — Premium high-performance fuel
- Electric — Electric vehicle charging
Each type has configurable pricing per liter/unit.
Payment UI
- Modern NUI interface showing vehicle model, plate, temperature, max speed, and current fuel level
- Fuel type selector with descriptions and pricing
- Pay with bank or cash
Jerry Can System
- Purchase
jerry_canitem at gas stations (G key) - Use from inventory to fill any nearby vehicle to 100%
- Includes prop attachment, pouring animation, and particle effects
Electric Vehicle Support
- Configurable list of electric vehicles
- Dedicated electric charging type with separate pricing
Per-Class Consumption
- 22 vehicle classes each have configurable fuel consumption multipliers
- Based on engine RPM for realistic consumption behavior
- Engine shuts off when fuel drops below 5%
Exports
GetFuel(vehicle)— Get vehicle fuel levelSetFuel(vehicle, fuel)— Set vehicle fuel level (0-100)
Multi-Framework & Multi-Inventory
- Frameworks: ESX, QBCore, VRP
- Inventories: ox_inventory, qb-inventory, ps-inventory, qs-inventory, codem-inventory, gfx-inventory, esx_inventoryhud
- Databases: oxmysql, mysql-async, ghmattimysql
