Tells you whether a function is currently hooked.
hookfunction hooks a function and restorefunction puts it back. isfunctionhooked only reports the current state - it never hooks or restores anything itself.
Parameters
Returns
true if func is currently under a hookfunction hook, false if it never was or has since been restored with restorefunction.
Example
The common use is a guard: check isfunctionhooked before hookfunction so you never double-hook the same function. This run also shows the flag flipping back after restorefunction:
Checks internal executor state to see if a hook is active on the function.