mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 14:06:02 +01:00
Add resourceName sendback for onResource functions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user