From 3911824fc6c937fe7f95c5c322d0cc94fd27dd7b Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 17 Jul 2025 12:47:36 +0100 Subject: [PATCH] Add resourceName sendback for onResource functions --- shared/_loaders.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/_loaders.lua b/shared/_loaders.lua index b99e337..823bba1 100644 --- a/shared/_loaders.lua +++ b/shared/_loaders.lua @@ -117,7 +117,7 @@ function onResourceStart(func, thisScript) debugPrint("^6Bridge^7: ^2Shared Load Detected^7.") hasPrinted = true end - func() + func(resourceName) end end end) @@ -136,7 +136,7 @@ function onResourceStop(func, thisScript) debugPrint("^6Bridge^7: ^2Registering ^3onResourceStop^7()") AddEventHandler('onResourceStop', function(resourceName) if getScript() == resourceName and (thisScript or true) then - func() + func(resourceName) end end) end