Files
community_bridge/modules/vehicleKey/F_RealCarKeysSystem/client.lua
T

12 lines
384 B
Lua
Raw Normal View History

2025-02-07 19:25:33 +00:00
if GetResourceState('qs-fuelstations') ~= 'started' then return end
Fuel = {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return exports['qs-fuelstations']:GetFuel(vehicle)
end
Fuel.SetFuel = function(vehicle, fuel)
if not DoesEntityExist(vehicle) then return end
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
end