[PAID][ESX] Realistic Fuel System | Le.V_Fuel 0.1

A script by Le.V_8

No reviews yet.
[PAID][ESX] Realistic Fuel System | Le.V_Fuel 0.1 main image

Full Description

Description :

Autonomous fuel system, featuring different type of fuel (dieselb10, dieselb7, sp95E10, etc…)

Each vehicle is to be put in the config, provided with characteristics giving them their type of fuel and their tank capacity.

Following this each vehicle emitted their fuel if however another petroleum liquid is not the same as that configured for the vehicle then, the tank of the latter will be siphoned.

A server event is given to you so that you can empty the vehicle. (In Config)

Same principle for electric vehicles, the preview will tell you so much! hoping that my work will please you

Image :

Electric Pump
https://cdn.discordapp.com/attachments/803334358928064573/1088890174450180208/image.png

Fuel Pump

https://cdn.discordapp.com/attachments/803334358928064573/1088890284953309285/image.png

Real Time fuelStep

https://cdn.discordapp.com/attachments/803334358928064573/1088890476184223764/image.png

Configuration :

Fuel = {
    
    Language = "fr", -- or en 

    Assets = {
        Enabled_Broken = true, -- If you want the vehicle engine damaged if the fuel have been different
        Interval = 3500, -- it's interval to remove fuel to veh
        SaveInBdd = true, -- If you want to save the liter per fuel 
    },

    Method_Paiement_Fund = {
        ["cash"] = 1000, -- Amount you need to have on you
        ["bank"] = 1000
    },

    Types = {
        ["Electric"] = {
            ["only"] = true, 
            ["power"] = 1.0,  
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },                              
    
        ["DIESEL B7 EXCELLIUM"] = {
            ["power"] = 3.5,
            ["percent"] = 500,
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },
        
        ["DIESEL B10 PREMIER"] = {
            ["power"] = 5.0,
            ["percent"] = 500,
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },
        
        ["ESSENCE SUPER ETHANOL E85"] = {
            ["power"] = 6.5,
            ["percent"] = 500,
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },
        
        ["SP95 E10"] = {
            ["power"] = 0.5,
            ["percent"] = 500,
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },
        
        ["SP98 E5 EXCELLLIUM"] = {
            ["power"] = 2.0,
            ["price"] = 10, 
            ["percent"] = 500,
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },

        ["KEROSENE"] = {
            ["power"] = 2.0,
            ["percent"] = 500,
            ["price"] = 10, 
            ["price_multiplier"] = 1.0 -- Multiplication of fuel price per liters
        },

    },

    Vehicles_Classes = { -- Consuption with mutli * price
        [0] = 0.7, -- Compacts
        [1] = 1.1, -- Sedans
        [2] = 1.7, -- SUVs
        [3] = 1.1, -- Coupes
        [4] = 1.5, -- Muscle
        [5] = 1.3, -- Sports Classics
        [6] = 1.5, -- Sports
        [7] = 1.5, -- Super
        [8] = 0.6, -- Motorcycles
        [9] = 1.2, -- Off-road
        [10] = 1.0, -- Industrial
        [11] = 1.0, -- Utility
        [12] = 1.2, -- Vans
        [13] = 0.0, -- Cycles
        [14] = 1.0, -- Boats
        [15] = 1.0, -- Helicopters
        [16] = 1.0, -- Planes
        [17] = 1.0, -- Service
        [18] = 1.0, -- Emergency
        [19] = 1.9, -- Military
        [20] = 1.8, -- Commercial
        [21] = 1.0, -- Trains
    },

    Vehicles = {

         -- Vehicles 
        ["komoda"] = {
            can = "DIESEL B10 PREMIER",
            jauge = 80.0,
        },

        ["calico"] = {
            can = "SP95 E10", 
            jauge = 64.0 
        },

        ["sultan"] = {
            can = "SP95 E10", 
            jauge = 50.0 
        },
        
        -- Truck / van
        ["mule"] = {
            can = "DIESEL B10 PREMIER", 
            jauge = 80.0 
        },

        ["burrito"] = {
            can = "DIESEL B10 PREMIER", 
            jauge = 80.0 
        },

        -- Boat 

        ["dinghy"] = {
            can = "DIESEL B10 PREMIER", 
            jauge = 80.0 
        },

        ["predator"] = {
            can = "DIESEL B10 PREMIER", 
            jauge = 80.0 
        },

        -- Planes 

        ["miljet"] = {
            can = "DIESEL B10 PREMIER", 
            jauge = 80.0 
        },


    },

    Vehicles_Electric = { 

        ["Imorgon"] = {
            can = "Electric",
        },

        ["dilettante"] = {
            can = "Electric",
        },
    },


    pumpModels = { -- Do not touch !!
        [-2007231801] = true,
        [1339433404] = true,
        [1694452750] = true,
        [1933174915] = true,
        [-462817101] = true,
        [-469694731] = true,
        [-164877493] = true
    },


    pumpsElectric = { -- it's just coord not props
        vector3(262.89, -331.19, 44.91),
        vector3(263.84, -327.52, 44.91),
        vector3(265.07, -324.57, 44.91),
        vector3(266.41, -321.36, 44.91),
        vector3(267.36, -318.014, 44.91),
    },

    pumpsBoat = { -- it's coord with props for all map
        {pos = vector3(-807.75, -1496.15, 1.59), heading = 111.20, props = "prop_gas_pump_old3"},
        {pos = vector3(-1268.77, -3376.12, 13.94), heading = 239.40, props = "prop_gas_pump_old3"},
        {pos = vector3(130.50, -1082.95, 29.19), heading = 350.67, props = "prop_gas_pump_old3"},
        {pos = vector3(134.23, -1060.20, 29.19), heading = 123.67, props = "prop_gas_pump_old3"},
    }

}

-- To unbroken vehicle engine use this event 
-- TriggerServerEvent("fuel:setStateUnBroken", GetVehicleNumberPlateText(vehicle))

Preview

Package Updated

M.A.J Include with update

Price : 18€ + Tax

rsm 0.01ms

|-------------------------------------|----------------------------|
| Code is accessible | Only (Config / Locale / Css) |
| Subscription-based | No |
| Lines (approximately) | +3000 |
| Support | Yes |