casing, RegisterModule adjustments, remove duplicate utilities table
This commit is contained in:
1 parent
515d4412b1
commit
733271562d
75 files changed
+1739
-14
No files matched your search
@@ -0,0 +1,13 @@
|
||||
if GetResourceState('ti_fuel') ~= 'started' then return end
|
||||
Fuel = {}
|
||||
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0, type end
|
||||
local level, type = exports["ti_fuel"]:getFuel(vehicle)
|
||||
return level, type
|
||||
end
|
||||
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['ti_fuel']:setFuel(vehicle, fuel, type or "RON91")
|
||||
end
|
||||
Reference in new issue
Block a user