Configuration
Every config.lua option in Eleven Combustible for FiveM: framework, target, fuel system, fuel types and prices, pumps, hose, tanks and consumption.
Everything is set in config.lua. The code is encrypted: only config.lua and the locales/ translations can be edited. After changing the config, restart the resource while nobody is refuelling.
Tip
You don't need to touch everything. To get started, Config.Locale, Config.FuelSystem and Config.Currency are enough. The other values come tuned.
General
| Option | Default | What it does |
|---|---|---|
Config.Locale | 'en' | Language: any file in locales/ ('en', 'es') |
Config.Framework | 'auto' | Framework for money and names: 'auto' (detects qbx_core, qb-core or es_extended), 'qbox', 'qbcore', 'esx' or 'standalone' (refuelling is free) |
Config.Target | 'auto' | 'auto' (ox_target first, then qb-target), 'ox_target' or 'qb-target' |
Config.Notify | 'ox_lib' | Notifications: 'ox_lib', 'qbcore' or 'esx' |
Config.Currency | '$' | Currency symbol on the pump screen |
Config.Payment | { cash = true, bank = true } | Accounts players can pay with. Refunds go back to the same account |
Fuel system
Config.FuelSystem decides who stores each vehicle's fuel level.
| Value | What it does |
|---|---|
'builtin' (default) | Eleven Combustible does everything: level and consumption |
'auto' | Uses the first fuel resource it finds from the list below; 'builtin' if none |
'ox_fuel', 'LegacyFuel', 'cdn-fuel', 'ps-fuel', 'lc_fuel', 'qs-fuelstations' | Bridge: level and consumption stay in that resource; Eleven Combustible only does the refuelling |
Important
In a bridge mode, remove or disable the other resource's refuel option on the pumps so players don't see two "refuel" options.
Warning
With 'auto', the other fuel system must come before eleven-combustible in server.cfg: detection happens once on load and only counts resources already running. If it comes later, it stays on 'builtin' without warning. More in Installation.
Fuel types
Config.FuelTypes = {
regular = { label = 'Regular 95', family = 'gasoline', price = 2.0, road = true },
premium = { label = 'Premium 98', family = 'gasoline', price = 2.4, road = true },
diesel = { label = 'Diesel', family = 'diesel', price = 1.9, road = true },
jeta1 = { label = 'Jet A-1', family = 'kerosene', price = 3.2, air = true },
}
Config.FuelOrder = { 'regular', 'premium', 'diesel', 'jeta1' }
| Field | What it does |
|---|---|
label | Name on the pump screen |
family | 'gasoline', 'diesel' or 'kerosene'. If it isn't the vehicle's, the warning shows and it damages the engine (see Wrong fuel) |
price | Price per litre (before the station multiplier) |
road / air | Whether road pumps and/or aircraft pumps sell it |
Config.FuelOrder is the order of the buttons on the screen. You can add new types with their own key.
Which fuel each vehicle uses
| Option | What it does |
|---|---|
Config.DieselClasses | Vehicle classes that run on diesel. Default 10, 11, 17, 19, 20 (industrial, utility, service, military and commercial) |
Config.DieselModels | Single models that run on diesel (trucks, buses…) |
Config.GasolineModels | Models of a diesel class that run on gasoline |
Config.ElectricModels | Electric models: they can't be refuelled |
Aircraft always use kerosene. Everything else, gasoline.
Pumps
| Option | Default | What it does |
|---|---|---|
Config.PumpModels | The map's pumps | Every prop of these models works as a road pump |
Config.AircraftPumps | {} | Fixed aircraft pumps: { coords = vec4(x, y, z, heading), label = 'Name' } |
Config.AircraftPumpModel | 'prop_gas_pump_old2' | Model of the aircraft pumps |
Config.AdminAce | 'eleven.fuel.admin' | ACE permission for /aircraftpump |
Config.AircraftAtRoadPumps | false | Aircraft can refuel at road pumps |
Config.CarsAtAircraftPumps | false | Cars can refuel at aircraft pumps |
More in Aircraft pumps.
Hose and refuelling
| Option | Default | What it does |
|---|---|---|
Config.Hose.road.reach | 6.0 | Metres the hose reaches at road pumps |
Config.Hose.road.litersPerSecond | 0.8 | Litres per second on the road (about 48 per minute) |
Config.Hose.air.reach | 18.0 | Metres the hose reaches at aircraft pumps |
Config.Hose.air.litersPerSecond | 2.5 | Litres per second for aircraft (about 150 per minute) |
Config.Hose.connectTimeout | 180 | Seconds to plug the hose in after paying. Otherwise it's cancelled and refunded |
Config.Hose.moveTolerance | 1.5 | Metres the vehicle may move before the hose comes off |
Config.QuickLiters | { 10, 20, 50 } | Quick litre buttons |
Config.QuickMoney | { 20, 50, 100 } | Quick amount buttons |
Tanks
| Option | Default | What it does |
|---|---|---|
Config.DefaultTank | { road = 65.0, air = 400.0 } | Tank litres when the vehicle's handling has none |
Config.TankOverrides | {} | Litres for specific models, for example adder = 70.0 |
Where the nozzle goes
If the model has a filler, the hose goes there. If not, Config.FillPoint is used (or Config.FillPointModels for a specific model):
Config.FillPoint = {
road = { back = 0.55, height = 0.55, out = -0.12, yaw = 0.0 },
air = { back = 1.0, height = 0.45, out = 0.15, yaw = 0.0 },
}
| Field | What it does |
|---|---|
back | 0 = centre of the vehicle, 1 = rear end |
height | 0 = bottom, 1 = roof |
out | Metres out of the body |
yaw | Nozzle rotation |
The nozzle always goes on the side facing the pump.
Prices per station
Config.Stations = {
{ id = 'grove', label = 'Grove Street', coords = vec3(-70.2, -1761.8, 29.5), radius = 25.0, multiplier = 1.0 },
}
A pump inside one of these zones applies its multiplier to each fuel's price. The id is the one used by the exports and the sale event (see For developers). Without zones, every pump charges the base price.
Built-in fuel system
Only with Config.FuelSystem = 'builtin'.
| Option | Default | What it does |
|---|---|---|
Config.Builtin.consumption | 2.2 | Litres per minute at full throttle and high revs, before the class multiplier |
Config.Builtin.idle | 0.08 | Litres per minute at idle |
Config.Builtin.classMultiplier | A table per class | How much each vehicle class uses (0 = none) |
Config.Builtin.startLevel | { min = 30, max = 70 } | Random level (in %) for vehicles that don't have one yet |
Consumption rises with RPM. With an empty tank the engine shuts off and won't start.
Wrong fuel
The Config.WrongFuel options are explained in Wrong fuel.
Translations
The texts are in locales/en.json and locales/es.json. For another language, copy one, translate it, save it as locales/<code>.json and set that code in Config.Locale.