fuels patched auto start by @gononono64
This commit is contained in:
1 parent
a759e9c27b
commit
7702faa269
14 files changed
+200
No files matched your search
@@ -0,0 +1,15 @@
|
||||
local resourceName = "ps-fuel"
|
||||
local configValue = BridgeClientConfig.Fuel
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
--print("Fuel: Loading ps-fuel")
|
||||
Fuel = Fuel or {}
|
||||
|
||||
Fuel.GetFuel = function(vehicle)
|
||||
if not DoesEntityExist(vehicle) then return 0.0 end
|
||||
return exports["ps-fuel"]:GetFuel(vehicle)
|
||||
end
|
||||
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports["ps-fuel"]:SetFuel(vehicle, fuel)
|
||||
end
|
||||
Reference in new issue
Block a user