[PAID] Lyre Advanced Fuel System (owned station management, cars, electric vehicles, planes, boats)


Today we present our advanced fuel script for ESX , QBCORE and adaptable to all other frameworks


YOUTUBE SHOWCASE VIDEO

WHAT IS THIS SCRIPT ?

This script is an advanced refueling system that allows your players to refuel gas, electric vehicles, boats and planes. Players can also purchase gas car/electric car/plane/boat stations, change the usage price, purchase inventory for the stations, or resell the stations if they no longer wish to own them. In addition, the script manages the fuel system of vehicles in a perfectly synchronized way between players and all that, without any lag! There are also dynamic blips on the maps which are updated in real time. So, if a station doesn’t have fuel stock or is on sale, it is indicated on the map!

FEATURES OF THIS SCRIPT

  • Many stations types: There are 4 types of preconfigured stations: gasoline car stations, electric car stations, boat stations and plane stations. You can also create your own stations for specific vehicles. A vehicle defined in a specific station cannot be refueled at an unsuitable station.

  • Choose amount of fuel: Players can choose the amount of gasoline/electricity/kerosene they want to put in their vehicle. The tank filling time will be more or less long depending on the number of liters of gasoline they want to add to their vehicle.

  • Specific time to refuel: Each station has a defined time per unit of fuel. In other words, electric vehicles at electric stations will take much longer to recharge than petrol vehicles at petrol stations.

  • Choose payment method: Players can choose which payment method they want to use to pay for fuel.

  • Station management: If the station is configured for, any player can buy the station and collect the profits from it. He will have to be careful to always stock up on fuel otherwise the players will no longer be able to refuel!

  • Sell your station: If the owner of a station no longer wants to manage his station, he can put it up for sale. The station is not sold instantly, he must wait for someone to buy the station to recover the money from the sale and remains the owner until a buyer has been found.

  • Stock system: Each station has a stock of fuel, when a player adds fuel to their vehicle, the fuel they add is removed from the station’s stock. You can enable or disable the stock system specifically for each station, so for example if you don’t want a stock system for boat stations, you can disable it.

  • Buy stock from suppliers: If you are the owner of a station, remember to regularly restock fuel in it otherwise players will no longer be able to use it. You can buy fuel from suppliers (the supplier’s price is configurable for each station) and then put a margin on it to make a profit.

  • Dynamic blips: Blips on the map are dynamic and updated in real time for all players on the server. If a station is on sale the blips will change color to green (configurable color), in the same way if a station is out of stock, the blips will change to gray (configurable color). Dynamic blips can be fully configured, you can choose to have only the color of the blip changing or only the name of the blip changing or both at the same time.

  • Synchronized fuel: The script manages the fuel of vehicles with statebags, in other words the fuel of a vehicle is synchronized for all players. For example, the passenger of a vehicle will see the vehicle’s fuel level decrease at the same time as the driver in a perfectly synchronized manner. Furthermore, if a passenger remains in the vehicle while the tank is being filled, the passenger will see the fuel level gradually rise.

  • Out of gas: If a vehicle runs out of fuel at all, the engine automatically turns off and the player cannot restart the engine until the vehicle is refueled.

  • Blacklist system: You can define a list of vehicles that will not be impacted by the fuel system, i.e. their fuel will not decrease and they will not run out of fuel. By default cycles are configured but you can add any specific vehicle.

  • Configurable animation: You can configure a specific animation for each station. For example, if you use a gas station, your ped will play an animation as if he is putting gas in his vehicle. But for electric vehicle stations, just like in real life, while the vehicle is charging, you can keep moving and go do something else.

  • Configurable fuel type: You can configure the fuel type for each station. For example, for aircraft stations configured by default, the fuel is kerosene, for electric car stations, the fuel is electricity, for thermal vehicle stations, the fuel is gasoline.

  • Translated into many languages: The script is available in 8 languages by default, you can obviously create your own language file if your language has not already been translated.

  • Optimized: The script is very optimized, it consumes 0.00ms on the client side.

  • We love frameworks: This script is natively compatible with the ESX and QBCORE but you can easily adapt the script to a custom framework with our bridge system.

  • OX_LIB Context menus: The script is written with ox_lib, all menus are context menus of ox_lib

All features can be configured as desired, if you have any doubts, do not hesitate to go to our documentation to see how the default configuration works.

SCREENSHOTS

View screenshots

Dynamic blips

Fuel station that can be buyed

image

Gas station that has an owner and has stock

image

Gas station that has an owner and has no stock

image

Gas station that has no stock and is on sale

image

For other types of stations, the system is the same but the sprites are different

Menus

Usage menu when there is no suitable vehicle nearby

Usage menu when there is a suitable vehicle nearby
The selected vehicle is highlighted in white, so you are sure of the vehicle you have selected.

Usage menu when you have to select how much fuel you want to put in your vehicle
System is the same for electric vehicles/planes and boats, but the word “gas” is replaced with the correct word

Usage menu when you have to select your payment method
System is the same for electric vehicles/planes and boats, but the unit “L” is replaced with the correct unit

While refueling on a preconfigured gas vehicle station
The animation can be easily configured

Management menu : Buy a station

Management menu : Manage a station that have the stock system enabled

Management menu : Manage a station that have the stock system disabled

COMPATIBILITY NOTICE AND DEPENDENCIES

Dependencies

The script has been planned for the use of the latest versions of the dependencies mentioned.

Framework compatibility
  • ESX (latest version): Drag and drop compatible (just edit “ESX” in the config file)
  • QBCORE (latest version): Drag and drop compatible (just edit “QBCORE” in the config file)
  • Any other framework: You need to create a bridge (see our documentation for how to do that)
SQL resource compatibility
Onesync compatibility
  • Onesync Infinity: Compatible
  • Onesync Legacy: Compatible
  • Without Onesync: Compatible

:point_right: Buy it on Tebex :point_left:

Check our gitbook page for documentation


Check out our other scripts:


Code is accessible Open Source [Yes] / Encrypted [Partly] : Config/Locales/Bridge only
Subscription-based No
Lines (approximately) 1600 (out of config file and locales)
Requirements ox_lib & oxmysql
Support Yes
3 Likes

I have purchased it. The power station does not have a module, does the electric pile module not have one

Hi, the Tesla supercharger MLO is only to illustrate the script. It is not included and is available for free.

Summary of recent updates

v2.1.1

  • Add GetFuel and SetFuel exports for more compatibility

v2.1.2

  • Add an “item refuel” system, so you can refuel vehicle with items like petrol can, you can configure specific items for specific vehicles

New update !

v2.1.3

  • Add full support for my Lyre TextUI Library (if you have lyre_textui on your server, it will be detected and it will use it)
  • Enhance item fuel system

What does the script look like when using lyre_textui?
Watch the video

New update !

v2.1.4

  • Add a system to automatically detect the framework of your server
  • Script is now compatible for qs-inventory by Quasar and ox_inventory by Overextended, the script will automatically detect the inventory you use
The following things will be added in the future :
  • Support of qb-inventory (can be actually manually added, but need some Lua skills)
  • Any other suggestion you want

Amazing script ! Maybe the best one :smiley:

1 Like

Thanks !

Great script! Super communication and top support.

1 Like

Thanks for your review !

It’s a really great script. Problems I reported were solved within a few hours, it works great if some functions are added that are planned it will be spectacular (like buying canisters or an extra configuration for electric vehicles)

Thanks you for your feedbacks ! :wink:

1 Like

v2.2.0 is avalaible for lyre_fuel

  • Fix a little problem with the exports. Thanks to Karle for the report
  • Enhance de.lua language. Thanks to Karle for the enhancement
  • We’ve just rewrote the logic of the vehicle fuel system

How to update since v2.1.6 ?

Simply replace all script files with the new ones. You can keep your old configuration, however be careful, you need to replace 2nd line of the config file. The line Config.Locale should be replaced with Config.locale, simply put in lower case.

And after that ?

The next updates will aim to make the script compatible with ox_target and qb-target. Furthermore, we will focus on the possibility of being able to better configure fuel usage according to vehicle categories. We would also like to develop a system to be able to fill gasoline cans from gas stations.

Feel free to download the new version on your keymaster: https://keymaster.fivem.net/asset-grants

There is free two gas stations scripts like this if someone dont have money for buy dom fuel and cdn fuel

1 Like

I appreciate your feedback! I just wanted to take this opportunity to share that I’m currently doing a full rework of both the Fuel and Carwash scripts. The updated versions will be available soon, and all current buyers will receive them for free. These new versions will include redesigned React-based interfaces and more realistic mechanics tailored for an immersive roleplay experience.

1 Like

That’s sounds awesome!!

1 Like

I’ve been using the Lyre Advanced Fuel System, and it adds a lot of depth to the server. The ability to manage fuel stations, support for electric vehicles, and the integration with boats and planes make it feel much more immersive. It runs smoothly, is easy to configure, and adds another layer of realism to the economy. Definitely a great addition for any server looking to improve its fuel system.

1 Like

Thank you for this feedback ! :slight_smile: