[FREE] LC Fuel - Gas, Diesel, Electric & more

GIF_001

LC Fuel:

Download it here: LC Fuel - GitHub
Showcase: [FiveM] LC Fuel - YouTube
Discord Community: Discord Invite

A free and open source fuel system that adds realism and depth to vehicle management. Whether your players drive gas-powered cars, diesel, or electric vehicles, this script ensures an immersive refueling experience.

Detailing all the script features:

  • Realistic Fuel System: Vehicles consume fuel dynamically based on speed, driving behavior, and fuel type.
  • Multiple Fuel Types: Supports Regular, Plus, Premium, Diesel, and Electric fuels, allowing for varied vehicle performance and economy mechanics.
  • Configurable Refueling Speed: Adjust how fast vehicles refuel for a balanced gameplay experience.
  • Support for Electric Vehicles: Integrated charging stations with custom electric charger props included.
  • Toggleable Nozzle Rope: Enable or disable the hose connection for better visuals at fuel stations.
  • Jerry Can Support: Players can purchase and carry jerry cans to refuel their vehicles anywhere.
  • Interactive Fuel Stations: Functional gas stations with detailed animations and prop interactions.
  • HUD Display: Optional fuel HUD to keep players informed about their fuel levels at all times.
  • Works for All Vehicles: Fully compatible with cars, boats, motorcycles, helicopters, and aircraft, ensuring complete immersion.
  • Compatible with lc_gas_stations Script: Integrates with lc_gas_stations (player-owned gas stations) by simply toggling one config option.
  • Optimized & Performance-Friendly: Ensures smooth server performance without lag or FPS drops.
  • User-Friendly Configuration: Modify settings like fuel prices, refueling times, and UI preferences with ease.
  • NUI-based UI: Clean and modern user interface for an immersive experience.

Requirements:

  • ESX, QBCore or QBox;
  • OxMysql;
  • lc_utils;

Script files:

  • Configuration: Includes a config file for easy customization to meet your server’s requirements.
  • Translation: Provides a lang folder for effortless translation into any language.
  • Documentation: Includes a documentation with important information on installation and common issues.
  • Framework Functions: Depends on a lc_utils script where you can modify any framework-related functions to align with your server’s needs.
  • Encryption: Open-source at LC Fuel GitHub Repository

Discord:

  • Join the discord to keep updated, share suggestions and get support.

Support:

Other cool (paid) scripts:

Code is accessible Yes
Subscription-based No
Lines (approximately) Many
Requirements Requirements
Support Yes

Hope you enjoy :smiley:

42 Likes

Awesome release! Finally, it’s possible to offer different fuel types while running a gas station. Even electric cars haven’t been overlooked. Thanks for your hard work!

2 Likes

Thank you for your feedback! :trophy:

Wow, what a great script. Thanks for sharing it for free!

1 Like

WOW WOW WOW, Amazing work!

1 Like

Unfortunately, QB Inventory is not supported! :expressionless:

1 Like

Honestly? Awesome work.

– Dan

1 Like

Best Fuel script out there thank you

1 Like

would it be possible to make it compatible with standalone servers?

2 Likes

Awesome work! :flushed: :star_struck:

1 Like

Im doing that right now will update you when completed

1 Like

Funcionou perfeitamente.

Obrigado pelo release.


Working perfectly.

Thxx for the release.

1 Like

oh thanks dude

1 Like

@Jeay @iamdanielpeter @eddieflew @m-Scripts @Rb2k
Thanks, everyone, for the feedback! I hope you’re all enjoying the script :smiley:

@ricomurda
If you manage to make it work for standalone without modifying its current features, please open a PR so we can review your contribution to the script :smiley:

https://github.com/LeonardoSoares98/lc_fuel/pulls

A majority was changed. I created a standalone module that provides a replacement for the esx/qb but I created/emulated a fake qb for it to work " QBCore = {}
QBCore.Functions = {}
QBCore.Functions.GetPlayer = function(source)
return {
PlayerData = {
job = Standalone.getPlayerJob(source),
citizenid = “STANDALONE”…source"

and then a config for for standalone features " Config.Standalone = {
enabled = true, – Enable standalone mode
free_fuel = true, – Free fuel with no money requirements
default_money = 10000, – Default money if free_fuel is false
use_mysql = false, – Use memory storage instead of MySQL
infinite_stock = true, – Infinite fuel stock
enable_jerry_can = true, – Enable jerry can functionality
enable_electric = true, – Enable electric charging
default_job = “civilian” – Default job for all players
}".

annoying part was doing UI/NUI as some callbacks were using a framework and made it work without any framework callbacks.

Redid the refuel display keeping the same UI

Implemented a translation cache " cachedTranslations = {
press_to_refuel = Utils.Lang.press_to_refuel or “Press ~INPUT_CONTEXT~ to refuel”,
open_refuel = Utils.Lang.open_refuel or “Press ~INPUT_CONTEXT~ to open refuel menu”,".

Im not gonna go into the rest but thats a majority of the things that were done. Wasn’t looking to make it perfect or anything just standalone for my server since you guys made this look amazing.

1 Like

Works fine with the default QB Inventory.

2 Likes

This fuel script is completely badass… Always wondered who would take over with a great fuel script and here we are… Congrats on the release.!

1 Like

@Florestika_Gaming The script was developed and tested on a QBcore server with default inventory, so it should work with no issues.

Use the support section if you need assistance: Getting Support - LixeiroCharmoso

1 Like

Congratulations on this resource!

Would it be possible to add “ox target” to use gas pumps?

We don’t use the “Press [KEY] to interact” option.

Thanks in advance!

4 Likes