19 lines
439 B
Lua
19 lines
439 B
Lua
if Config.Fuel ~= 'ps-fuel' then
|
|
return
|
|
end
|
|
|
|
function SetFuel(vehicle, fuelLevel)
|
|
local success, error = pcall(function()
|
|
exports['ps-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['ps-fuel']:GetFuel(vehicle)
|
|
end
|