Skip to content

Commands & permissions

Commands, keys and interactions of Cuxial Fuel, and who can use each one.

Cuxial Fuel has a handful of commands. The screen positioner is reserved for staff; the rest are open to players.

Commands ​

CommandWhoWhat it does
/fuel_typeAnyone inside a vehicle, in any seatShows the fuel of the vehicle in a notification. The name is set in fuelTypeCommand.
/fuel_chartThe driver of a vehicle that consumes fuelOpens or closes the consumption chart: fuel, speed and litres per second. The name is set in chart.command. It closes by itself when the player leaves the vehicle.
/fuel_screenStaff (admin.permission)With Cuxial Gas Stations running, opens /gasadmin on the Pumps tab. Without it, opens the screen positioner for the nearest pump or charger (within 6 m); run it again to close without saving. Name set in commands.screen.
/fuelaudioAnyone, only with debug onPlays every sound of the script, to test them. The name is set in audio.debugCommand.

/fuel_chart and its key only exist with chart.enabled = true. /fuel_screen only works with screen.enabled = true.

Keys ​

KeyAction
F3Gives the cursor to the consumption chart while it is open. The default comes from chart.focusKey; each player can rebind it in the GTA key settings, under FiveM.
Esc or BackspaceLeaves the pump screen without buying.
Left clickPresses the buttons of the pump screen.

Interactions ​

Shown by sleepless_interact when the player looks at the object.

WhereOptionWhen
PumpRefuelNo nozzle in hand and no jerry can equipped.
ChargerChargeSame conditions.
Pump or chargerReturn the nozzleNozzle in hand, not refuelling.
Fuel capRefuelNozzle in hand or jerry can equipped, on foot.
Fuel capStop refuelingWhile the fuel is flowing.
Fuel capTake out the nozzleThe nozzle stayed plugged in after the engine was started.

Screen positioner ​

/fuel_screen places the pump screen on a model that has no position, or adjusts an existing one. An outline shows where the screen will be drawn.

KeyAction
Arrow keysMove the screen sideways and forwards.
Page Up / Page DownRaise or lower it.
Q / ERotate it.
Shift + arrow keysChange width and height.
CtrlBigger steps while held.
TabSwitch between one and two faces.
EnterSave.
BackspaceCancel.

Saving uploads the position to the server, which applies it to every player at once without a restart, and also prints a line in the F8 console:

lua
my_custom_pump = { offset = vec3(0.000, -0.280, 1.100), yaw = 0.0, width = 0.500, height = 0.260, sides = 2 },

Paste that line into screen.models in shared/config.lua only if you want to keep it in the file too. Cancelling deletes nothing: the screen goes back to the position saved on the server or to the one in the config.

If you had positions saved only in your own game with earlier versions, /fuel_screen offers once to upload them to the server.

Do not adjust the models delivered in cuxial_gas_assets (the ones with mesh = true). Their screen is part of the model and its measurements are exact.

Permissions ​

  • /fuel_screen requires the framework permission named in admin.permission, 'admin' by default, checked through Cuxial Bridge.
  • jobDiscounts in shared/config.lua gives a percentage off to the listed jobs while on duty. See Configuration.

© Cuxial