Return modules folder

-- Was a git prefrences thing and needed cleaned up
This commit is contained in:
MrNewb committed 2025-01-13 14:28:09 -05:00
1 parent 48f5c70039
commit 8f6fa1e291
95 files changed
+4254

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
if GetResourceState('cdn-fuel') ~= 'started' then return end
Fuel = {}
Fuel.GetFuel = function(vehicle)
if not DoesEntityExist(vehicle) then return 0.0 end
return Entity(vehicle).state.fuel
end
Fuel.SetFuel = function(vehicle, fuel, type)
if not DoesEntityExist(vehicle) then return end
local currentFuel = Entity(vehicle).state.fuel
Entity(vehicle).state.fuel = currentFuel + fuel
return Entity(vehicle).state.fuel
end