fix capitol pt 1
This commit is contained in:
1 parent
0f6578bcd7
commit
48f5c70039
158 files changed
-5977
No files matched your search
@@ -1,14 +0,0 @@
|
||||
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
|
||||
Reference in new issue
Block a user