Installation

⚠️

Before asking support in Discord, as many tickets are due to ignoring certain steps in this guide, read the Common Issues tab on the left menu. Your issue might already be there.

Install steps

Downloading Dependency

Download the lc_utils dependency from this link: lc_utils.zip

Removing the Previous Fuel Script

Ensure the complete removal of your current fuel script from the resources folder.

Choosing the Fuel Script

Please choose one of the following fuel script options located inside the gas station folder:

  • LegacyFuel
  • ox_fuel
  • esx_sna_fuel or qb_sna_fuel
  • ps-fuel (QBCore only)
  • cdn-fuel (QBCore only)
🚫
Attention!

Please note that all fuel scripts provided are open-source creations from the FiveM community, and they are not developed by us. We have just adjusted them to work with our owned gas station script. As a result, we may not be able to provide extensive support for their functionalities.

LegacyFuel

LegacyFuel is the easiest to install, as it doesn't require any additional dependencies or extra installation steps.

LegacyFuel is not compatible with ox_inventory, use ox_fuel instead.

ox_fuel

If you choose ox_fuel make sure you have correctly installed all the dependencies that can be found in their forum post: https://forum.cfx.re/t/free-ox-fuel/4853726 (opens in a new tab)

sna-fuel

If you choose sna-fuel make sure you have correctly followed all the installation steps in their README, which can be found here:

ESX: https://github.com/Sna-aaa/esx-sna-fuel/blob/main/README.md (opens in a new tab)

QBCore: https://github.com/Sna-aaa/qb-sna-fuel/blob/main/README.md (opens in a new tab)

ps-fuel

If you choose ps-fuel make sure you have correctly followed all the installation steps in their README, which can be found here: https://github.com/Project-Sloth/ps-fuel/blob/main/README.md (opens in a new tab)

cdn-fuel

If you choose cdn-fuel make sure you have correctly followed all the installation steps in their README, which can be found here: https://github.com/CodineDev/cdn-fuel/blob/main/README.md (opens in a new tab)

Extracting Files

Extract the contents of lc_gas_stations, lc_utils and the chosen fuel script from the zip files into your resources folder.

Configuring the Scripts

Configure the framework settings in the lc_utils/config.lua file.

Starting Resources

Start both resources at the bottom of your server.cfg file:

server.cfg
# your other resources above
ensure lc_utils
ensure lc_gas_stations
ensure # the chosen fuel script 
⚠️

The loading order matters! Ensure that the scripts are placed at the bottom of your server.cfg, as specified above.

Done

Setup is complete. Join your server, locate the gas station locations (indicated by blips on the map), and then press the 'E' key when near a blip to open the UI.

  • The script doesn't require SQL, it generates everything automatically
  • The tables in your database will have the gas_station_ prefix