fuel to auto or manual
This commit is contained in:
1 parent
b77fbeffa8
commit
a53995a773
11 files changed
+41
-21
No files matched your search
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
@@ -6,7 +8,7 @@ Fuel.GetFuel = function(vehicle)
|
|||||||
return exports['cdn-fuel']:GetFuel(vehicle)
|
return exports['cdn-fuel']:GetFuel(vehicle)
|
||||||
end
|
end
|
||||||
|
|
||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
|
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
|
|||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
if not DoesEntityExist(vehicle) then return 0.0, type end
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
local level, type = exports["ti_fuel"]:getFuel(vehicle)
|
local level, _ = exports["ti_fuel"]:getFuel(vehicle)
|
||||||
return level, type
|
return level
|
||||||
end
|
end
|
||||||
|
|
||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
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
|
end
|
||||||
@@ -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 = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
if not DoesEntityExist(vehicle) then return 0.0, type end
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||||
local level, type = exports["x-fuel"]:getFuel(vehicle)
|
local level, _ = exports["x-fuel"]:getFuel(vehicle)
|
||||||
return level, type
|
return level
|
||||||
end
|
end
|
||||||
|
|
||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['x-fuel']:SetFuel(vehicle, fuel)
|
return exports['x-fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user