1 file changed
+3
-1
@@ -2,6 +2,7 @@ local resourceName = "lc_fuel"
|
|||||||
local configValue = BridgeClientConfig.Fuel
|
local configValue = BridgeClientConfig.Fuel
|
||||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
--print("Fuel: Loading lc_fuel")
|
--print("Fuel: Loading lc_fuel")
|
||||||
|
if GetResourceState('lc_fuel') ~= 'started' then return end
|
||||||
Fuel = Fuel or {}
|
Fuel = Fuel or {}
|
||||||
|
|
||||||
Fuel.GetFuel = function(vehicle)
|
Fuel.GetFuel = function(vehicle)
|
||||||
@@ -9,7 +10,8 @@ Fuel.GetFuel = function(vehicle)
|
|||||||
return exports["lc_fuel"]:GetFuel(vehicle)
|
return exports["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
|
||||||
Reference in new issue
Block a user