[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

image

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

image

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

image

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

Management menu : Buy a station

image

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

image

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

image

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

Buy it on Tebex

Escrowed version OR Open source version
Script is actually 15% OFF

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
1 Like

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 !