Fuel types, prices and payment
Fuel types (Config.FuelTypes)
Each entry is one fuel the pumps sell:
Id— the fuel's id:"95","98","diesel","electric". Used everywhere else in the config and by the exportsLabel— the full name on the pump screenShort— the short badge (95,D,EV)Price— per litre (per kWh for electric), before the daily changeDailyVariation— how far the price may move each day, either way.0.12= up to ±12%Color— the fuel's colour on the screens and the HUDKind—"petrol","diesel"or"electric". Decides which engines it suitsPowerBoost— optional extra engine power on a full tank of it (0.06= +6%), scaled by its share of the tank
Then:
PriceChangeHour— the server hour the daily prices roll over. The same day always gives the same prices, even across restartsPumpFuelTypes— the fuel ids a petrol pump sells. Chargers only ever sell"electric"
Payment (Config.Payment, ESX / QBCore)
Methods— the payment options on the pump screen. Each has anId, aLabel, anIcon("card"or"cash") and the frameworkAccountit is paid from ("bank","cash", or any account your framework has)RefundUnused— refund prepaid fuel that was not pumped when the nozzle goes back. Spilled fuel is not refundedMinAmount/MaxAmount— what the keypad accepts, in the display unitStandalonePrices— standalone only: the pumps, chargers and jerry cans still show the daily prices and the payment step, but nothing is charged and no paid / refunded message shows. For freeroam servers and showcases
The balance is checked and charged on the server, and the nozzle is only handed over once the money is taken.
Consumption (LegacyFuel compatible)
Classes— a fuel use multiplier per vehicle class. Under 1.0 uses less,0.0never uses fuel (cycles and trains by default)FuelUsage— engine RPM (left) to fuel used (right): the percent of the tank burned every second, divided by 10.[1.0] = 1.4burns 0.14% of the tank a second at full revsElectricUsageMultiplier— electric vehicles drain by the same table times thisBlacklist— models (names or hashes) that never use fuel, show no fuel HUD and cannot be refuelled
Fuel only burns while the engine runs. The tables work exactly like LegacyFuel's, so a LegacyFuel config carries straight over.
Can't find what you need? Ask on Discord — response in under 5 hours.
