Files
community_bridge/modules/fuel/LegacyFuel/client.lua
T

14 lines
531 B
Lua
Raw Normal View History

2025-03-03 19:08:46 -05:00
if GetResourceState('LegacyFuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "LegacyFuel" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('LegacyFuel') ~= 'started' then return end
2025-02-17 23:01:12 -05:00
Fuel = Fuel or {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['LegacyFuel']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
return exports['LegacyFuel']:SetFuel(vehicle, fuel)
end