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

+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