Files
red-valley/resources/[framework]/[addons]/qs-advancedgarages/client/custom/fuel/esx-sna-fuel.lua
2026-03-29 21:41:17 +03:00

19 lines
454 B
Lua

if Config.Fuel ~= 'esx-sna-fuel' then
return
end
function SetFuel(vehicle, fuelLevel)
local success, error = pcall(function()
exports['esx-sna-fuel']:SetFuel(vehicle, fuelLevel)
end)
if not success then
Debug('You did not configure your fuel system and it is set to 100.0 in fuel, check in Config.Fuel')
return 100.0
end
end
function GetFuel(vehicle)
return exports['esx-sna-fuel']:GetFuel(vehicle)
end