From 5674e424a85cc222dabcc291724427799f94e5da Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Wed, 12 Jul 2023 04:53:18 +0200 Subject: [PATCH] Update functions.lua --- shared/functions.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shared/functions.lua b/shared/functions.lua index 76a3910..4bc42da 100644 --- a/shared/functions.lua +++ b/shared/functions.lua @@ -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