Shared
HookableFunction
Function to return a metatable that allows when being modified, to change its __call function so it represents a hookable function
function HRLib.HookableFunction(initialFunction: function?): HRLibHookableFunction
Parameters description
initialFunction
- the parameter of the initial function (if you have a function to replace with a hookable function so an outer code could replace this function or add a hook to it) or nil
Additional description - when using the set
method of the returned value, you can return false
if you use isJustAddition
parameter but if there is a situation in this function, used as addition where you should prevent the main function from executing.
To see the HRLibHookableFunction's definition, go to HRLibHookableFunction class
Last updated