[ESX/QB] Fuel System V3 (Gas Station)

In Game Photo

Config
Debux = {}

Debux.Framework = "auto" -- Determines which framework to use: auto, esx, or qb
Debux.Distance = 4.0 -- indicates how close you are to the pump
Debux.Language = "en" -- en, de, fr, sp
Debux.FuelUse = 0.4 -- this is how many liters of gasoline the vehicle will use every 10 seconds.

Debux.Locales = {
    ["en"] = {
        no_money = "You have no money.",
        success = "You successfully bought fuel.",
        open = "Open Fuel System",
        full = "Gasoline Depous is already full",
    },
    ["de"] = {
        no_money = "Du hast kein Geld.",
        success = "Du hast erfolgreich Treibstoff gekauft.",
        open = "Kraftstoffsystem öffnen",
        full = "Benzindepous ist bereits voll",
    },
    ["fr"] = {
        no_money = "Vous n'avez pas d'argent.",
        success = "Vous avez acheté du carburant avec succès.",
        open = "Ouvrir le système de carburant",
        full = "Le dépôt d'essence est déjà plein",
    },
    ["sp"] = {
        no_money = "No tienes dinero.",
        success = "Has comprado combustible con éxito.",
        open = "Abrir sistema de combustible",
        full = "Petrol Depous ya está lleno",
    }
}

Debux.Pumpmodels = {
    "prop_gas_pump_old2",
    "prop_gas_pump_old3",
    "prop_gas_pump_1a",
    "prop_gas_pump_1b",
    "prop_gas_pump_1c",
    "prop_gas_pump_1d"
}

Debux.Price = {
    ["regular"] = 10,
    ["doped"] = 30,
    ["super"] = 50,
    ["max"] = 80
}

Debux.Category = {
    [0] = "regular",
    [1] = "regular",
    [2] = "regular",
    [3] = "regular",
    [4] = "doped",
    [5] = "regular",
    [6] = "super",
    [7] = "max",
    [8] = "regular",
    [9] = "regular",
    [10] = "regular",
    [11] = "regular",
    [12] = "regular",
    [13] = "regular",
    [14] = "regular",
    [15] = "regular",
    [16] = "regular",
    [17] = "regular",
    [18] = "regular",
    ["electro"] = "electro"
}

Debux.electricCars = {
    "TEZERACT",
    "neon"
  }

function getFramework()
    if Debux.Framework == "esx" then
        return exports['es_extended']:getSharedObject(), "esx"
    elseif Debux.Framework == "qb" then
        return exports["qb-core"]:GetCoreObject(), "qb"
    elseif Debux.Framework == "auto" then
        if GetResourceState('qb-core') == 'started' then
            return exports["qb-core"]:GetCoreObject(), "qb"
        elseif GetResourceState('es_extended') == 'started' then
            return exports['es_extended']:getSharedObject(), "esx"
        end
    end
end

:red_car::fuelpump: GAS STATION SYSTEM :fuelpump::red_car:

Get ready to experience a new generation gas station system with advanced features and a sleek design tailored for your FiveM server. This isn’t just a gas station—it’s a highly customizable, detailed, and easy-to-use system designed to enhance gameplay for you and your players!

:star2: FEATURE HIGHLIGHTS

:wrench: Framework Compatibility:

Effortlessly adaptable to any framework, making integration seamless.

:computer: Responsive & Modern Interface:

A clean, intuitive, and stylish design that ensures a smooth user experience.

:fuelpump: Customizable Pumps:

Add as many pumps as you want and customize their settings with ease.

:globe_with_meridians: Multi-Language Support:

Fully customizable language settings to suit your server’s audience.

:gear: Adjustable Fuel Consumption:

Configure how many liters of fuel are consumed per second for a truly tailored experience.

:straight_ruler: Detailed Pump Distance Settings:

Fine-tune pump distances for immersive and practical fueling.

:oncoming_automobile: Vehicle-Specific Fuel Types:

Each vehicle has its own unique fuel type, adding a new level of realism.
Different fuel types with customizable pricing, adjustable directly from the configuration.

:dollar: Dynamic Pricing:

Set different prices for each fuel variant based on your economy needs.

:bar_chart: Optimized Performance:

Uses 0.00 resmon, ensuring top-tier performance without lag.

:bell: Interactive Notifications:

Players are notified when approaching a gas station, thanks to ox_lib integration.

:star2: WHY CHOOSE THIS SYSTEM?

This gas station system is designed to enhance roleplay and server immersion with a high degree of customization. From unique fuel types to adjustable pump mechanics, every detail has been carefully crafted to deliver a polished and professional experience.

YOUTUBE SHOWCASE

Code is accessible 2 version avaible
Subscription-based No
Lines (approximately) +1000
Requirements esx or qb and ox_lib
Support Yes

TEBEX

https://debux.tebex.io

1 Like

Please update your post to remove references to “open source”, as this is misleading. Consider using the word “source” instead; for example: “the client source is editable, while the server is escrowed”.

Thank you!
:mascot:

I edited it to “No Escrow”, but as I said, I didn’t mean to mislead, but because the file is fully accessible.

Many, especially in FiveM, have not read the definition of “open-source” (OSS) and use it incorrectly. This happened to me for the first time at the beginning too. But for your information, open-source also means that the code is available to the public = free of charge.

hmm yes it can be, I have a store that has been open for many years, I follow the cfx.re relases section closely and usually everyone lists it as open source, I have almost never seen anyone using another word. from now on I will pay attention.

1 Like