mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-15 18:43:56 +00:00
Update functions.lua
This commit is contained in:
1 parent
c3d2d8ad73
commit
5674e424a8
1 file changed
+1
-3
@@ -17,12 +17,10 @@ end)
|
||||
|
||||
function NDCore.isResourceStarted(resourceName, cb)
|
||||
local started = GetResourceState(resourceName) == "started"
|
||||
startedResources[resourceName] = started
|
||||
|
||||
if cb then
|
||||
startedResources[resourceName] = started
|
||||
callbacks[resourceName] = cb
|
||||
cb(started)
|
||||
end
|
||||
|
||||
return started
|
||||
end
|
||||
Reference in new issue
Block a user