mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36:03 +01:00
Update functions.lua
This commit is contained in:
@@ -17,12 +17,10 @@ end)
|
|||||||
|
|
||||||
function NDCore.isResourceStarted(resourceName, cb)
|
function NDCore.isResourceStarted(resourceName, cb)
|
||||||
local started = GetResourceState(resourceName) == "started"
|
local started = GetResourceState(resourceName) == "started"
|
||||||
startedResources[resourceName] = started
|
|
||||||
|
|
||||||
if cb then
|
if cb then
|
||||||
|
startedResources[resourceName] = started
|
||||||
callbacks[resourceName] = cb
|
callbacks[resourceName] = cb
|
||||||
cb(started)
|
cb(started)
|
||||||
end
|
end
|
||||||
|
|
||||||
return started
|
return started
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user