Files
community_bridge/modules/fuel/cdn-fuel/client.lua
T

14 lines
510 B
Lua
Raw Normal View History

2025-03-03 19:08:46 -05:00
if GetResourceState('cdn-fuel') ~= 'started' or (BridgeClientConfig.Fuel ~= "cdn" and BridgeClientConfig.Fuel ~= "auto") then return end
--if GetResourceState('cdn-fuel') ~= '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['cdn-fuel']:GetFuel(vehicle)
end
2025-03-03 19:08:46 -05:00
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
end