Skip to content

Troubleshooting

Common Cuxial Fuel problems, with their cause and fix.

The most frequent problems after installing Cuxial Fuel, with the cause and the fix for each one.

The resource does not start

Cause. A dependency is missing or starts later than Cuxial Fuel. It needs OneSync, ox_lib, oxmysql, cuxial_bridge, sleepless_interact, ox_inventory and cuxial_gas_assets.

Fix. Enable OneSync and start the dependencies first:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure ox_inventory
ensure sleepless_interact
ensure cuxial_gas_assets
ensure cuxial_fuel
The fuel level jumps, or two fuel systems react to the pumps

Cause. Another fuel resource is still running. Both write the level of the same vehicles.

Fix. Remove every other fuel script from server.cfg and restart the server. Cuxial Fuel answers the fuel exports that other resources ask for.

A change in config.lua has no effect

Cause. That section was changed in /gasadmin → Fuel. What is saved in the panel wins over shared/config.lua.

Fix. Change the value in the panel, or press Reset on that section so it follows the file again. Sections marked Restart required only change when the resource restarts.

/fuel_screen opens /gasadmin instead of the positioner

Cause. With Cuxial Gas Stations running, screens are tuned in its panel, on the Pumps tab.

Fix. Use Edit in the world or Take me and edit on that tab. See Admin panel.

A pump shows no Refuel option

Cause. One of these:

  • The model of that pump is not in pumps.props, or its entry has enabled = false.
  • The player already holds a nozzle or has a jerry can equipped.
  • sleepless_interact is not running.

Fix. Add the model to pumps.props in shared/config.lua, or remove enabled = false. For chargers, check chargers.enabled and chargers.props.

The pump opens a panel in the middle of the screen instead of its own screen

Cause. The pump screen is not available for that pump:

  • Its model has no entry in screen.models.
  • screen.enabled is false.
  • The screen did not load. The F8 console of the player says so, and the usual reason is an incomplete web/dist folder after a partial upload.

Fix. For a model of your own, place the screen from /gasadmin → Pumps or with /fuel_screen. If the screen did not load, make sure web/dist/index.html and the rest of web/dist exist inside the resource; if they do not, copy the resource again from the original package.

The screen is drawn in the wrong place on the pump

Cause. A profile saved on the server from /gasadmin → Pumps or /fuel_screen, or a wrong entry in screen.models.

Fix. In /gasadmin → Pumps, press Reset on that model to go back to the factory profile, or tune it with Edit in the world and save. Without Cuxial Gas Stations, stand next to the pump, run /fuel_screen, adjust it and save. Do not adjust the models with mesh = true.

Chargers, pump screens or totems are missing, or there is no sound

Cause. cuxial_gas_assets is not running or was not copied whole. It carries the charger model, the pump models with a screen, the totem screens and the sounds.

Fix. Copy cuxial_gas_assets again from the package and start it before cuxial_fuel. For sounds, also check audio.enabled. For totems, check screen.totems.enabled; only the nearest maxDuis totems are lit at once.

"This pump doesn't work with this vehicle"

Cause. An electric vehicle at a fuel pump, a fuel vehicle at a charger, or a vehicle that cannot refuel (listed in data/blacklist.lua, or with a tank of 0).

Fix. If a custom electric model is treated as a fuel vehicle, add it to chargers.vehicles. On game builds older than 3258 that list is the only way electric vehicles are recognised.

The engine breaks a few seconds after refuelling

Cause. Wrong fuel. Diesel went into a vehicle that is not in data/diesel.lua, or another fuel went into one that is.

Fix. Repair the vehicle and refuel with the right fuel; buying a different fuel empties the tank first. If the model should run on diesel, add it to data/diesel.lua. The delay is wrongFuelDelay.

No money comes back when the nozzle is returned

Cause. One of these:

  • refundOnReturn is false.
  • Less than 1 L was left unused.
  • The litres were spilled and spill.customerPays is true.
  • With cuxial_gasstations, the till of the station pays the refund, up to what it holds.

Fix. Set refundOnReturn = true, and spill.customerPays = false if spilled litres should be refunded too.

The job discount is not applied

Cause. The player is off duty, or jobDiscounts uses the label of the job instead of its name. On ESX, the discount requires a version that reports duty status.

Fix. Use the internal job name as the key and go on duty. The jerry can never has a discount.

The jerry can cannot be bought

Cause. One of these:

  • jerryCan.enabled is false.
  • The item in jerryCan.item does not exist in ox_inventory, or the player cannot carry it.
  • No fuel of the station has jerryCan.requiredStock litres in stock.
  • The player is at a charger: cans are only sold at fuel pumps.

Fix. Check the item name and the stock. The money is given back whenever the can cannot be delivered.

"This gas station doesn't have enough stock" at a pump without an owner

Cause. That fuel has false in defaults.stock, or the purchase is over 1000 L, the limit of a pump that belongs to no station.

Fix. Set the fuel to true in defaults.stock. For chargers, check stock in chargers.types.

A vehicle forgets its fuel type after a restart

Cause. saveAllFuelTypes is false and the vehicle is not owned by a player, so its type is only kept in memory. It can also be a database error: the server console prints the failed query.

Fix. Set saveAllFuelTypes = true to save every vehicle, and check that oxmysql starts before cuxial_fuel.

There are no gas station blips on the map

Cause. blips.enabled is false by default, because cuxial_gasstations adds its own blips.

Fix. Without cuxial_gasstations, set blips.enabled = true and review the positions in blips.coords.

A resource sets the fuel but other players do not see the change

Cause. The client export SetFuel was called from a client that does not own the vehicle on the network.

Fix. Call it from the driver's client, or use the server export. See Exports & events.

© Cuxial