diff --git a/modules/fuel/lc_fuel/client.lua b/modules/fuel/lc_fuel/client.lua index 235a12a..b2e52f0 100644 --- a/modules/fuel/lc_fuel/client.lua +++ b/modules/fuel/lc_fuel/client.lua @@ -1,15 +1,12 @@ -local resourceName = "lc_fuel" -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") +if GetResourceState('lc_fuel') ~= 'started' then return end Fuel = Fuel or {} Fuel.GetFuel = function(vehicle) if not DoesEntityExist(vehicle) then return 0.0 end - return exports["lc_fuel"]:GetFuel(vehicle) + return eexports["lc_fuel"]:GetFuel(vehicle) end -Fuel.SetFuel = function(vehicle, fuel) +Fuel.SetFuel = function(vehicle, fuel, type) if not DoesEntityExist(vehicle) then return end return exports["lc_fuel"]:SetFuel(vehicle, fuel) end \ No newline at end of file