Gas stations
The 5 LTD gas stations are shops like the others, with their own interior, plus our own fuel pumps. The car’s fuel still belongs to your server’s fuel script: consumption, the fuel gauge and other scripts keep working as always.
Refuelling, step by step
Section titled “Refuelling, step by step”- Pay at the pump. Look at the pump’s screen and press E: the camera goes to the screen. Choose the amount with the mouse wheel (faster when you spin it, Shift for steps of 10), press L for a full tank, and pay with E (cash) or G (card).
- Take the nozzle. Press E on the nozzle hanging on the pump. The hose is real: it has weight, hangs, rests on the ground and goes around the pump. It is 4 metres long.
- Put it in the car. Walk to the car with the engine off and press E on its fuel cap. Your character places itself next to it and puts the nozzle in.
- Fill up. Hold E. The pump’s screen counts the litres and the amount, and the car’s fuel gauge goes up. It stops by itself when it reaches what you paid or a full tank.
- Hang it up. Take the nozzle out (G) and hang it on the pump (E). What you did not use is refunded.
Prepaid money that is never used is refunded after a while. If someone drives off with the nozzle in the car, it is torn out and goes back to the pump.
The pumps
Section titled “The pumps”- A realistic display on each side: amount, litres and price per litre in amber 7-segment digits, and a message line.
- Everyone sees the pump screens and other players’ hoses and nozzles.
For the owner
Section titled “For the owner”- Fuel sales go to the shop: card payments to its account, cash to the register drawer.
- The owner sets the price per litre in the Prices app, between the limits of
Config.Ltd.priceLimits. - Every refuel appears in the sales as Fuel · 12.4 L · card, with its profit.
Compatible fuel scripts
Section titled “Compatible fuel scripts”| Fuel script | Notes |
|---|---|
ox_fuel |
See below |
qb-fuel / LegacyFuel |
Works out of the box |
cdn-fuel |
Turn off its own owned gas stations (PlayerOwnedGasStationsEnabled = false) |
ps-fuel |
Works out of the box |
UrantixFueling |
Works out of the box |
| Your own | Fill in the custom adapter in bridge/fuel.lua |
The script is detected automatically (Config.Ltd.fuel = 'auto'). Without a fuel script, the LTDs are normal shops without pumps.
ox_fuel
Section titled “ox_fuel”ox_fuel finds pumps either by model (with ox_target) or by the coordinates of its station list. In coordinate mode it would also answer at our pumps, so SL-Shops leaves its pumps off and the server console explains how to turn them on:
- set
ox_target = trueinox_fuel/config.lua, or - remove the LTD stations from
ox_fuel/data/stations.lua(the console lists them).