From a2177fbf49da253357eb8286bac6f53c77f53cb7 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 9 Jul 2026 22:55:26 -0500 Subject: [PATCH] Restore HookScript --- api/api.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/api.lua b/api/api.lua index 49508a90..539b1f80 100644 --- a/api/api.lua +++ b/api/api.lua @@ -542,6 +542,15 @@ do -- create a scope so we don't have to worry about upvalue collisions end end +-- [ HookScript ] +-- Securely post-hooks a script handler. +-- 'f' [frame] the frame which needs a hook +-- 'script' [string] the handler to hook +-- 'func' [function] the function that should be added +function HookScript(f, script, func) + f:HookScript(script, func) +end + -- [ HookAddonOrVariable ] -- Sets a function to be called automatically once an addon gets loaded -- 'addon' [string] addon or variable name