Closure

hookfunction

Hooks a Lua or C function. Returns a copy of the original function.

Syntax

hookfunction(target: function, hook: function): function