fuel to auto or manual

This commit is contained in:
MrNewb committed 2025-03-03 19:08:46 -05:00
1 parent b77fbeffa8
commit a53995a773
11 files changed
+41 -21

No files matched your search

+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('BigDaddy-Fuel') ~= 'started' then return end
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)
+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('LegacyFuel') ~= 'started' then return end
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)
+2 -1
View File
@@ -1,4 +1,5 @@
if GetResourceState('Renewed-Fuel') ~= 'started' then return end
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)
+4 -2
View File
@@ -1,4 +1,6 @@
if GetResourceState('cdn-fuel') ~= 'started' then return end
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)
@@ -6,7 +8,7 @@ Fuel.GetFuel = function(vehicle)
return exports['cdn-fuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
end
+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('esx-sna-fuel') ~= 'started' then return end
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)
+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('okokGasStation') ~= 'started' then return end
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)
+2 -1
View File
@@ -1,4 +1,5 @@
if GetResourceState('cdn-fuel') ~= 'started' then return end
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)
+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('ps-fuel') ~= 'started' then return end
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)
+3 -1
View File
@@ -1,4 +1,6 @@
if GetResourceState('qs-fuelstations') ~= 'started' then return end
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)
+8 -6
View File
@@ -1,13 +1,15 @@
if GetResourceState('ti_fuel') ~= 'started' then return end
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, type end
local level, type = exports["ti_fuel"]:getFuel(vehicle)
return level, type
if not DoesEntityExist(vehicle) then return 0.0 end
local level, _ = exports["ti_fuel"]:getFuel(vehicle)
return level
end
Fuel.SetFuel = function(vehicle, fuel, type)
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['ti_fuel']:setFuel(vehicle, fuel, type or "RON91")
return exports['ti_fuel']:setFuel(vehicle, fuel, "RON91")
end
+7 -5
View File
@@ -1,13 +1,15 @@
if GetResourceState('x-fuel') ~= 'started' then return end
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, type end
local level, type = exports["x-fuel"]:getFuel(vehicle)
return level, type
if not DoesEntityExist(vehicle) then return 0.0 end
local level, _ = exports["x-fuel"]:getFuel(vehicle)
return level
end
Fuel.SetFuel = function(vehicle, fuel, type)
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['x-fuel']:SetFuel(vehicle, fuel)
end