tweak: check for inventory

This commit is contained in:
Andyyy7666 committed 2022-12-02 21:49:18 +01:00
1 parent 211c2531cc
commit 12b30c30d6
3 files changed
+9 -8

No files matched your search

+6 -1
View File
@@ -18,7 +18,12 @@ end)
function isResourceStarted(resourceName, cb)
local started = GetResourceState(resourceName) == "started"
startedResources[resourceName] = started
callbacks[resourceName] = cb
if cb then
callbacks[resourceName] = cb
cb(started)
end
return started
end