fuels folder fix

This commit is contained in:
MrNewb committed 2025-03-04 22:03:49 -05:00
1 parent 7e9f0df74a
commit a759e9c27b
14 files changed
+1 -168

No files matched your search

BIN
View File
Binary file not shown.
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('BigDaddy-Fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "BigDaddy" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('BigDaddy-Fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['BigDaddy-Fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('LegacyFuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "LegacyFuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('LegacyFuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['LegacyFuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return exports['LegacyFuel']:SetFuel(vehicle, fuel)
end
-13
View File
@@ -1,13 +0,0 @@
if GetResourceState('Renewed-Fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "Renewed-Fuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('Renewed-Fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['Renewed-Fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return exports['Renewed-Fuel']:SetFuel(vehicle, fuel)
end
-11
View File
@@ -1,11 +0,0 @@
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return GetVehicleFuelLevel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return SetVehicleFuelLevel(vehicle, fuel)
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('cdn-fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "cdn" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('cdn-fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['cdn-fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('esx-sna-fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "sna" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('esx-sna-fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['esx-sna-fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('okokGasStation') ~= 'started' or (BridgeClientConfig.Fuel ~= "okokGasStation" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('okokGasStation') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['okokGasStation']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return exports['okokGasStation']:SetFuel(vehicle, fuel)
end
-15
View File
@@ -1,15 +0,0 @@
if GetResourceState('ox_fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "ox_fuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('ox_fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return Entity(vehicle).state.fuel
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
local currentFuel = Entity(vehicle).state.fuel
Entity(vehicle).state.fuel = currentFuel + fuel
return Entity(vehicle).state.fuel
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('ps-fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "ps-fuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('ps-fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['ps-fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return exports['ps-fuel']:SetFuel(vehicle, fuel)
end
-14
View File
@@ -1,14 +0,0 @@
if GetResourceState('qs-fuelstations') ~= 'started' or (BridgeClientConfig.Fuel ~= "qs-fuelstations" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('qs-fuelstations') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['qs-fuelstations']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
end
-15
View File
@@ -1,15 +0,0 @@
if GetResourceState('ti_fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "ti_fuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('ti_fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
local level, _ = exports["ti_fuel"]:getFuel(vehicle)
return level
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['ti_fuel']:setFuel(vehicle, fuel, "RON91")
end
-15
View File
@@ -1,15 +0,0 @@
if GetResourceState('x-fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "x-fuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('x-fuel') ~= 'started' then return end
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
local level, _ = exports["x-fuel"]:getFuel(vehicle)
return level
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['x-fuel']:SetFuel(vehicle, fuel)
end
+1 -1
View File
@@ -7,7 +7,7 @@ BridgeClientConfig.MenuSystem = "auto" -- [ auto | ox | qb ]
BridgeClientConfig.ProgressBarSystem = "auto" -- [ auto | ox | qb ]
BridgeClientConfig.ZoneSystem = "ox" -- [ ox | poly ]
BridgeClientConfig.VehicleKey = "auto" -- [ auto | qb-vehiclekeys | MrNewbVehicleKeys | wasabi | jaksam | qbx | cd | f_real | mk | okok | qs | renewed | t1ger | mono ]
BridgeClientConfig.Fuel = "auto" -- [ LegacyFuel | ox_fuel | ps-fuel | qs-fuelstations | Renewed-Fuel | ti_fuel | x-fuel | okokGasStation | BigDaddy | cdn | sna | ]
BridgeClientConfig.Fuel = "auto" -- [ LegacyFuel | ox_fuel | ps-fuel | qs-fuelstations | Renewed-Fuel | ti_fuel | lc_fuel | x-fuel | okokGasStation | BigDaddy | cdn | sna | ]
BridgeClientConfig.TargetSystem = "ox" -- [ ox | qb | sleepless | auto ] -- sleepless is only partially supported and would need another system in place
return BridgeClientConfig