![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik main image](https://forum-cfx-re.akamaized.net/original/4X/8/1/0/810ed533f2c39f0adf754be032bbe98f0909a044.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 1](https://forum-cfx-re.akamaized.net/original/4X/8/1/0/810ed533f2c39f0adf754be032bbe98f0909a044.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 2](https://forum-cfx-re.akamaized.net/optimized/4X/2/a/c/2ac1c08adfe6ba37b45b6ac3af82edeb50425ba2_2_690x388.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 3](https://forum-cfx-re.akamaized.net/optimized/4X/f/7/b/f7bee8ee76123ac07aa2a8511bc8d963054b35d8_2_690x388.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 4](https://forum-cfx-re.akamaized.net/optimized/4X/1/3/e/13e6ac69e8c1c4431b710962a2a9db5c09bdff44_2_690x388.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 5](https://forum-cfx-re.akamaized.net/original/4X/6/5/3/653b1c9003bdcea4eb6c28c61d8a772cab558ff5.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 6](https://forum-cfx-re.akamaized.net/original/4X/9/3/d/93d8acce248a25f2c0d3fda86aeeb2f95f4659e7.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 7](https://forum-cfx-re.akamaized.net/original/4X/1/9/d/19d31cc97167d2fed475a14771b43826e8ac73e7.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 8](https://forum-cfx-re.akamaized.net/original/4X/0/d/b/0db18b2d46c45b5057bf4a82d6152d37b6863e09.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 9](https://forum-cfx-re.akamaized.net/original/4X/2/d/d/2ddfa8190aaea590c4e0fba22a72742f96c6dd2e.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 10](https://forum-cfx-re.akamaized.net/original/4X/3/f/c/3fcdfabe319593ac8a5974056384266e99e4a791.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 11](https://forum-cfx-re.akamaized.net/original/4X/6/c/f/6cf2b04a69935cbf723521bd0feda76815bbf307.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 12](https://forum-cfx-re.akamaized.net/original/4X/1/9/d/19d31cc97167d2fed475a14771b43826e8ac73e7.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 13](https://forum-cfx-re.akamaized.net/original/4X/9/3/d/93d8acce248a25f2c0d3fda86aeeb2f95f4659e7.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 14](https://forum-cfx-re.akamaized.net/original/4X/3/d/6/3d62640d71c740b21666d731d10de208798f8149.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 15](https://forum-cfx-re.akamaized.net/original/4X/f/d/5/fd529689e4750ef36350bfe242dfc05410ca1b64.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 16](https://forum-cfx-re.akamaized.net/original/4X/3/2/f/32f1581cf017b31dd8954a36b2381af1dc9ff364.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 17](https://forum-cfx-re.akamaized.net/original/4X/6/5/3/653b1c9003bdcea4eb6c28c61d8a772cab558ff5.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 18](https://forum-cfx-re.akamaized.net/original/4X/7/a/6/7a641684eac486e569424db03a62be5ce3d08021.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 19](https://forum-cfx-re.akamaized.net/original/4X/f/6/b/f6b6627f4ed3fa076fbe5f0d0a363e853c902ac1.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 20](https://forum-cfx-re.akamaized.net/original/4X/8/5/b/85b3efdf2321530fcfaa31b55dce2be6b83d67da.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 21](https://forum-cfx-re.akamaized.net/original/4X/d/5/0/d5068c41579ffbb7f557b48f32b0ec1bdd1dd52a.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 22](https://forum-cfx-re.akamaized.net/original/4X/0/6/1/0619c0579d60e5714b508daf80e98ed44c34e5af.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 23](https://forum-cfx-re.akamaized.net/original/4X/4/e/c/4ec605408f66c8b62d61ab589eef6f519d14f652.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 24](https://forum-cfx-re.akamaized.net/original/4X/6/9/b/69bad650cbe6356db5dd5d66e16cfb566c802c9c.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 25](https://forum-cfx-re.akamaized.net/original/4X/3/7/3/37348f2448d8c547617c1dd7647a322fc364de06.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 26](https://forum-cfx-re.akamaized.net/original/4X/8/4/e/84e89d4ec05bde78b48959c60c0a41a40db7afe4.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 27](https://forum-cfx-re.akamaized.net/original/4X/8/a/4/8a44aa683927f8e98e5f2e227e0d15b99f9992ca.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 28](https://forum-cfx-re.akamaized.net/original/4X/8/1/0/810ed533f2c39f0adf754be032bbe98f0909a044.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 29](https://forum-cfx-re.akamaized.net/original/4X/4/1/0/41088f2fcf4e61fffb84c8fcbceaf3006cb7c085.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 30](https://forum-cfx-re.akamaized.net/original/4X/c/7/b/c7b30f52db0bec6bb9741989070536a7967be9e4.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 31](https://forum-cfx-re.akamaized.net/original/4X/b/f/e/bfe08291bb15ff164cf3ebe7c33cd3fa22f9f5cf.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 32](https://forum-cfx-re.akamaized.net/original/4X/a/9/f/a9f58a4f82b92e5e4067ae52205df80a03ef9cb6.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 33](https://forum-cfx-re.akamaized.net/original/4X/3/5/5/3550133737ac7e15a8791168ff2d3af5e1e00c6d.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 34](https://forum-cfx-re.akamaized.net/original/4X/d/5/3/d53fe4200f0b43e2869f83be59c9a31dcd770f3a.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 35](https://forum-cfx-re.akamaized.net/original/4X/8/a/2/8a261693b93abad39161922ba047febb4115456d.gif)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 36](https://forum-cfx-re.akamaized.net/original/4X/e/0/2/e02c6f910c1687e3cc9a808f40598f9bb8ddc491.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 37](https://forum-cfx-re.akamaized.net/original/4X/6/3/9/639e3e4f7afaac974902080b0a7559695bf6d66a.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 38](https://forum-cfx-re.akamaized.net/original/4X/2/7/d/27d23af4cae8c98c83d5a031846cc564a2cbd4e9.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 39](https://forum-cfx-re.akamaized.net/original/4X/7/4/b/74b9e0cc61006159a0232f452634958b9ec2bd52.png)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 40](https://forum-cfx-re.akamaized.net/original/4X/9/1/0/910217f9219153d871ad5105d54ab25f4d806299.jpeg)
![⛽️ [PAID] [QBCore][Standalone][ESX] Fuel system - Different designs | Different types of fuel | Convenient configuration file | Electric and Conventional Refueling | UI | Burevestnik thumbnail 41](https://forum-cfx-re.akamaized.net/original/4X/9/7/f/97f570af431a07c9b44235405f510f000f10ea85.png)
Price
UnknownA script by Burevestnik
Price
UnknownI welcome you CFX community!
Today i present to you a fuel system categorized by vehicle types that will bring more diversity to the gameplay on your server. I am confident that you and your players will find it appealing!
This system boasts a user-friendly interface that showcases various fuel options for different types of cars. In addition, it features a distinct fuel consumption mechanism within each vehicle and much more.
Demonstration of the system:
Example of a configuration file:
-- /*
-- ██████╗░██╗░░░██╗██████╗░███████╗██╗░░░██╗███████╗░██████╗████████╗███╗░░██╗██╗██╗░░██╗
-- ██╔══██╗██║░░░██║██╔══██╗██╔════╝██║░░░██║██╔════╝██╔════╝╚══██╔══╝████╗░██║██║██║░██╔╝
-- ██████╦╝██║░░░██║██████╔╝█████╗░░╚██╗░██╔╝█████╗░░╚█████╗░░░░██║░░░██╔██╗██║██║█████═╝░
-- ██╔══██╗██║░░░██║██╔══██╗██╔══╝░░░╚████╔╝░██╔══╝░░░╚═══██╗░░░██║░░░██║╚████║██║██╔═██╗░
-- ██████╦╝╚██████╔╝██║░░██║███████╗░░╚██╔╝░░███████╗██████╔╝░░░██║░░░██║░╚███║██║██║░╚██╗
-- ╚═════╝░░╚═════╝░╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚══════╝╚═════╝░░░░╚═╝░░░╚═╝░░╚══╝╚═╝╚═╝░░╚═╝*/
Config = {}
Config.framework = exports["es_extended"]:getSharedObject() --ESX | QBCore -> exports['qb-core']:GetCoreObject()
payFuel = function(fuelPrice, input, vehType) --Set up your framework here.
--ESX
local player = Config.framework.GetPlayerFromId(source)
if player.getMoney() >= tonumber(fuelPrice) then
player.removeMoney(fuelPrice)
TriggerClientEvent('bur_fuelsystem:refuel', source, input, vehType)
else
TriggerClientEvent('bur_fuelsystem:burExitUI', source)
TriggerClientEvent('esx:showNotification', source, Config.Translation['nomoney'])
end
--QBCore
--local player = Config.framework.Functions.GetPlayer(source)
--if player.PlayerData.money["cash"] >= tonumber(fuelPrice) then
--player.Functions.RemoveMoney('cash', fuelPrice, "Bank depost")
--TriggerClientEvent('bur_fuelsystem:refuel', source, input, vehType)
--else
-- TriggerClientEvent('bur_fuelsystem:burExitUI', source)
-- TriggerClientEvent("QBCore:Notify", source, Config.Translation['nomoney'], "success", 2500)
--end
end
-- Use Burevestnik Interaction Button (https://forum.cfx.re/t/free-standalone-interaction-button/4860169)
Config.UseBurevestnikInteractionButton = false
DisplayHelpText = function(str)
SetTextComponentFormat("STRING")
AddTextComponentString(str)
DisplayHelpTextFromStringLabel(0, 0, false, -1)
end
HelpNotificationBottom = function(text)
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName(text)
EndTextCommandThefeedPostTicker(true, true)
end
Config.ObjeFuel = {-2007231801, 1339433404, 1694452750, 1933174915, -462817101, -469694731, -164877493}
Config.FuelOpenButton = 38
Config.interactionDistance = 4.0
Config.Translation = {
['menu'] = 'Press ~INPUT_CONTEXT~ to ~g~interact',
['nomoney'] = '~r~You do not have enough Money!',
['noaccess'] = '~g~Your vehicle tank is full!',
['wrongtypeoffuel'] = '~r~Incorrect fuel type!',
['BurevestnikInteractionButton'] = 'E',
['BurevestnikInteractionButtonText'] = 'Press to interact',
['UIexit'] = 'EXIT',
['UIgs1'] = 'GAS STATION',
['UIgs1name'] = 'Burevestnik OIL',
['UIfuel1'] = 'Regular',
['UIfuel2'] = 'Premium',
['UIfuel3'] = 'Diesel',
['UIfuel4'] = 'ECO',
['UIgs1text1'] = 'PRICE PER GALLON',
['UIcost'] = 'COST',
['UIfueltypetext'] = 'Your fuel type',
['UIfueltypetitletext'] = 'Cash',
['UIfueltypetext2'] = 'Processing...',
['UIgs1pay'] = 'PAY AND REFUEL',
['UIgs2'] = 'ELECTRIC CHARGING',
['UIgs2name'] = 'Burevestnik STATION',
['UIgs2text1'] = 'PRICE PER KW',
['UIgs2pay'] = 'CONNECT THE CHARGER AND PAY',
['UIcurrency'] = '$',
['UIbar'] = 'Fueling in progress...',
}
Config.useFuelConsumption = true
vehicleFuelConsumption = function(playerPed, vehicle)
if GetVehicleFuelLevel(vehicle) > 0 then
SetVehicleFuelLevel(vehicle, GetVehicleFuelLevel(vehicle) - (GetVehicleEstimatedMaxSpeed(vehicle)/1000))
end
end
Config.useSpecificfuel = true
Config.classes = {
{
vehicleClass = {1,2,3,4,8,9,13,18},
fuelType = "regular",
},
{
vehicleClass = {5,6,7},
fuelType = "premium",
},
{
vehicleClass = {10,11,12,14,15,16,17,19,20,21,22},
fuelType = "disel",
}
}
Config.electricVehicles = {
"Voltic",
"Voltic2",
"Dilettante",
"Dilettante2",
"Cyclone",
"Cyclone2",
"Raiden"
}
Config.regularFuelPrice = 1
Config.premiumFuelPrice = 2
Config.diselFuelPrice = 3
Config.ecoFuelPrice = 4
Config.GasStationsBlips = {
{
useBlip = true,
blipID = 415, --Blip ID.
blipScale = 0.6, --Blip scale.
blipColor = 51, --Blip color.
blipDisplay = 4, --Blip display.
blipText = "Gas station", --Blip text.
location = {
vector3(49.4187, 2778.793, 58.043),
vector3(263.894, 2606.463, 44.983),
vector3(1039.958, 2671.134, 39.550),
vector3(1207.260, 2660.175, 37.899),
vector3(2539.685, 2594.192, 37.944),
vector3(2679.858, 3263.946, 55.240),
vector3(2005.055, 3773.887, 32.403),
vector3(1687.156, 4929.392, 42.078),
vector3(1701.314, 6416.028, 32.763),
vector3(179.857, 6602.839, 31.868),
vector3(-94.4619, 6419.594, 31.489),
vector3(-2554.996, 2334.40, 33.078),
vector3(-1800.375, 803.661, 138.651),
vector3(-1437.622, -276.747, 46.207),
vector3(-2096.243, -320.286, 13.168),
vector3(-724.619, -935.1631, 19.213),
vector3(-526.019, -1211.003, 18.184),
vector3(-70.2148, -1761.792, 29.534),
vector3(265.648, -1261.309, 29.292),
vector3(819.653, -1028.846, 26.403),
vector3(1208.951, -1402.567,35.224),
vector3(1181.381, -330.847, 69.316),
vector3(620.843, 269.100, 103.089),
vector3(2581.321, 362.039, 108.468),
vector3(176.631, -1562.025, 29.263),
vector3(-319.292, -1471.715, 30.549),
vector3(-722.6, -1472.88, 5.01),
vector3(1784.324, 3330.55, 41.253)
}
},
}
--Exports
--exports.Burevestnik_fuelsystem:Burevestnik_fuelsystem_getFuel()
--exports.Burevestnik_fuelsystem:Burevestnik_fuelsystem_setFuel(amount) -- 1.0/5.7/24.4 etc
Optimization (The script consumes):
0.00 ms in a quiet state.
0.03 ms in an active state.
What does this system include:
TOP SALES
You may also be interested in my other resources:
Code accessible | Open source: Yes \ Escrow: No - Available only: config, ui |
Subscription based | No |
Lines (approximately) | ~1600 |
Requirements | Standalone/ESX/QBCore |
Support | Yes |
No approved reviews found for this script yet.