Cuxial Fuel has a handful of commands. The screen positioner is reserved for staff; the rest are open to players.
Commands
| Command | Who | What it does |
|---|---|---|
/fuel_type | Anyone inside a vehicle, in any seat | Shows the fuel of the vehicle in a notification. The name is set in fuelTypeCommand. |
/fuel_chart | The driver of a vehicle that consumes fuel | Opens 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_screen | Staff (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. |
/fuelaudio | Anyone, only with debug on | Plays 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
| Key | Action |
|---|---|
| F3 | Gives 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 Backspace | Leaves the pump screen without buying. |
| Left click | Presses the buttons of the pump screen. |
Interactions
Shown by sleepless_interact when the player looks at the object.
| Where | Option | When |
|---|---|---|
| Pump | Refuel | No nozzle in hand and no jerry can equipped. |
| Charger | Charge | Same conditions. |
| Pump or charger | Return the nozzle | Nozzle in hand, not refuelling. |
| Fuel cap | Refuel | Nozzle in hand or jerry can equipped, on foot. |
| Fuel cap | Stop refueling | While the fuel is flowing. |
| Fuel cap | Take out the nozzle | The 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.
| Key | Action |
|---|---|
| Arrow keys | Move the screen sideways and forwards. |
| Page Up / Page Down | Raise or lower it. |
| Q / E | Rotate it. |
| Shift + arrow keys | Change width and height. |
| Ctrl | Bigger steps while held. |
| Tab | Switch between one and two faces. |
| Enter | Save. |
| Backspace | Cancel. |
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:
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_screenrequires the framework permission named inadmin.permission,'admin'by default, checked through Cuxial Bridge.jobDiscountsinshared/config.luagives a percentage off to the listed jobs while on duty. See Configuration.
