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.
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!
@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
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.