Add files via upload

This commit is contained in:
jim gordon authored and GitHub committed 2025-03-14 20:56:08 +00:00
1 parent 996d8d9065
commit 63d903bc8c
1 file changed
+3 -6
+3 -6
View File
@@ -1,15 +1,12 @@
local resourceName = "lc_fuel" if GetResourceState('lc_fuel') ~= 'started' then return end
local configValue = BridgeClientConfig.Fuel
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
--print("Fuel: Loading lc_fuel")
Fuel = Fuel or {} Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle) Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end if not DoesEntityExist(vehicle) then return 0.0 end
return exports["lc_fuel"]:GetFuel(vehicle) return eexports["lc_fuel"]:GetFuel(vehicle)
end end
Fuel.SetFuel = function(vehicle, fuel) Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end if not DoesEntityExist(vehicle) then return end
return exports["lc_fuel"]:SetFuel(vehicle, fuel) return exports["lc_fuel"]:SetFuel(vehicle, fuel)
end end