15 lines
591 B
Lua
15 lines
591 B
Lua
local resourceName = "Renewed-Fuel"
|
|
local configValue = BridgeClientConfig.Fuel
|
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
--print("Fuel: Loading Renewed-Fuel")
|
|
Fuel = Fuel or {}
|
|
|
|
Fuel.GetFuel = function(vehicle)
|
|
if not DoesEntityExist(vehicle) then return 0.0 end
|
|
return exports['Renewed-Fuel']:GetFuel(vehicle)
|
|
end
|
|
|
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
|
if not DoesEntityExist(vehicle) then return end
|
|
return exports['Renewed-Fuel']:SetFuel(vehicle, fuel)
|
|
end |