Config

On this page you can access GKS Fuel config file.

Config = {}

Config.Framework = "qbcore" -- qbcore, esx, standalone

if Config.Framework == "qbcore" then
    QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == "esx" then
	ESX = nil
	pcall(function() ESX = exports["es_extended"]:getSharedObject() end)
	if ESX == nil then
		TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end)
	end
end


Config.KeyMapping = "E"    			 	 --- Menu opening key ## https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Config.RegisterCommand = "fuelsystem"    --- Opening with RegisterCommand
Config.Language = "EN" 				  	  -- EN, TR, GER, FR, ITA,


Config.PayMethod 		   = "cash"		-- Payment method (qbcore => bank, cash / esx => bank,money)
Config.Progress 		   = "qbcore" 	-- ox, qbcore
Config.FuelPrice 		   = 500		-- Fuel Price
Config.ForceFuelPrice	   = 1000		-- Force Fuel Price
Config.UltraForceFuelPrice = 2000		-- Ultra Force Fuel Price


Config.Blacklist = { --Fuel taken will have no effect
	--"Adder",
	--276773164
}

Config.ElectricCars = { -- Write the model of the cars you do not want to buy gas
    "neon",
	"voltic",
	"cyclone",
	"raiden",
	"tezeract",
	"dilettante",
	"imorgon",
	"surge",
	"khamelion",
	"airtug",
	"caddy2",
	"caddy",
	"caddy3",
	"rcbandito",
	"voltic2",
	"voltic"
}

Config.NotLowFuel = {  -- Fuel won't run low
	`tractor`,
	`tractor2`,
	`tractor3`,
	`caddy`,
	`caddy2`,
	`caddy3`
}

Config.Speed = { -- Here you can set the top speed increase according to the gasoline types of the vehicles.
	[0] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- Compacts
	[1] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- Sedans
	[2] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- SUVs
	[3] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Coupes
	[4] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Muscle
	[5] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Sports Classics
	[6] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Sports
	[7] = {Fuel = 0.0, Force = 6.0, UltraForce = 9.0}, -- Super
	[8] = {Fuel = 0.0, Force = 3.8, UltraForce = 6.2}, -- Motorcycles
	[9] = {Fuel = 0.0, Force = 3.1, UltraForce = 5.1}, -- Off-road
	[10] = {Fuel = 0.0, Force = 2.5, UltraForce = 4.5}, -- Industrial
	[11] = {Fuel = 0.0, Force = 3.0, UltraForce = 5.0}, -- Utility
	[12] = {Fuel = 0.0, Force = 3.2, UltraForce = 5.4}, -- Vans
	[13] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Cycles
	[14] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Boats
	[15] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Helicopters
	[16] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Planes
	[17] = {Fuel = 0.0, Force = 3.0, UltraForce = 5.0}, -- Service
	[18] = {Fuel = 0.0, Force = 3.2, UltraForce = 6.2}, -- Emergency
	[19] = {Fuel = 0.0, Force = 3.6, UltraForce = 6.2}, -- Military
	[20] = {Fuel = 0.0, Force = 3.2, UltraForce = 5.4}, -- Commercial
	[21] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Trains
}

Config.Tork = { -- Here you can set the torque increase according to the gasoline types of the vehicles.
	[0] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- Compacts
	[1] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- Sedans
	[2] = {Fuel = 0.0, Force = 3.5, UltraForce = 5.8}, -- SUVs
	[3] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Coupes
	[4] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Muscle
	[5] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Sports Classics
	[6] = {Fuel = 0.0, Force = 4.5, UltraForce = 6.8}, -- Sports
	[7] = {Fuel = 0.9, Force = 6.0, UltraForce = 9.0}, -- Super
	[8] = {Fuel = 0.0, Force = 3.8, UltraForce = 6.2}, -- Motorcycles
	[9] = {Fuel = 0.0, Force = 3.1, UltraForce = 5.1}, -- Off-road
	[10] = {Fuel = 0.0, Force = 2.5, UltraForce = 4.5}, -- Industrial
	[11] = {Fuel = 0.0, Force = 3.0, UltraForce = 5.0}, -- Utility
	[12] = {Fuel = 0.0, Force = 3.2, UltraForce = 5.4}, -- Vans
	[13] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Cycles
	[14] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Boats
	[15] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Helicopters
	[16] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Planes
	[17] = {Fuel = 0.0, Force = 3.0, UltraForce = 5.0}, -- Service
	[18] = {Fuel = 0.0, Force = 2.4, UltraForce = 5.4}, -- Emergency
	[19] = {Fuel = 0.0, Force = 2.4, UltraForce = 5.4}, -- Military
	[20] = {Fuel = 0.0, Force = 3.2, UltraForce = 5.4}, -- Commercial
	[21] = {Fuel = 0.0, Force = 0.0, UltraForce = 0.0}, -- Trains
}

Config.FuelClasses = { -- Here you can set the first level gasoline consumption
	[0] = 0.04, -- Compacts
	[1] = 0.05, -- Sedans
	[2] = 0.06, -- SUVs
	[3] = 0.08, -- Coupes
	[4] = 0.08, -- Muscle
	[5] = 0.1, -- Sports Classics
	[6] = 0.12, -- Sports
	[7] = 0.2, -- Super
	[8] = 0.05, -- Motorcycles
	[9] = 0.08, -- Off-road
	[10] = 0.1, -- Industrial
	[11] = 0.09, -- Utility
	[12] = 0.08, -- Vans
	[13] = 0.0, -- Cycles
	[14] = 0.0, -- Boats
	[15] = 0.0, -- Helicopters
	[16] = 0.0, -- Planes
	[17] = 0.09, -- Service
	[18] = 0.1, -- Emergency
	[19] = 0.1, -- Military
	[20] = 0.15, -- Commercial
	[21] = 0.0, -- Trains
}

Config.ForceFuelClasses = { -- Here you can set the second level gasoline (FORCE) consumption.
	[0] = 0.03, -- Compacts
	[1] = 0.04, -- Sedans
	[2] = 0.05, -- SUVs
	[3] = 0.07, -- Coupes
	[4] = 0.07, -- Muscle
	[5] = 0.08, -- Sports Classics
	[6] = 0.1, -- Sports
	[7] = 0.16, -- Super
	[8] = 0.04, -- Motorcycles
	[9] = 0.07, -- Off-road
	[10] = 0.08, -- Industrial
	[11] = 0.08, -- Utility
	[12] = 0.07, -- Vans
	[13] = 0.0, -- Cycles
	[14] = 0.0, -- Boats
	[15] = 0.0, -- Helicopters
	[16] = 0.0, -- Planes
	[17] = 0.08, -- Service
	[18] = 0.08, -- Emergency
	[19] = 0.08, -- Military
	[20] = 0.11, -- Commercial
	[21] = 0.0, -- Trains
}

Config.UltraForceFuelClasses = { -- Here you can set the third level gasoline (ULTRA FORCE) consumption.
	[0] = 0.02, -- Compacts
	[1] = 0.03, -- Sedans
	[2] = 0.05, -- SUVs
	[3] = 0.06, -- Coupes
	[4] = 0.06, -- Muscle
	[5] = 0.07, -- Sports Classics
	[6] = 0.08, -- Sports
	[7] = 0.13, -- Super
	[8] = 0.03, -- Motorcycles
	[9] = 0.06, -- Off-road
	[10] = 0.06, -- Industrial
	[11] = 0.07, -- Utility
	[12] = 0.06, -- Vans
	[13] = 0.0, -- Cycles
	[14] = 0.0, -- Boats
	[15] = 0.0, -- Helicopters
	[16] = 0.0, -- Planes
	[17] = 0.07, -- Service
	[18] = 0.06, -- Emergency
	[19] = 0.06, -- Military
	[20] = 0.08, -- Commercial
	[21] = 0.0, -- Trains
}

Config.RpmUsage = { -- Don't touch here (This place requires a detailed setting, if you don't know about formulas, don't touch it.)
	[1.0] = 0.14,
	[0.9] = 0.12,
	[0.8] = 0.10,
	[0.7] = 0.09,
	[0.6] = 0.08,
	[0.5] = 0.07,
	[0.4] = 0.05,
	[0.3] = 0.04,
	[0.2] = 0.02,
	[0.1] = 0.01,
	[0.0] = 0.00,
}

Config.PumpModels = {
	[-2007231801] = true,
	[1339433404] = true,
	[1694452750] = true,
	[1933174915] = true,
	[-462817101] = true,
	[-469694731] = true,
	[-164877493] = true
}

Config.FuelStations = {
	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(176.631, -1562.025, 29.263),
	vector3(-319.292, -1471.715, 30.549),
	vector3(1784.324, 3330.55, 41.253)
}

Last updated