isfunctionhooked
Returns whether a function has been hooked by a prior hookfunction call.
function isfunctionhooked(funcfuncfunctionThe function to check.: function): booleanbooleantrue if the function has been hooked.Usage
Check hook status
function a(num)
print(num)
end
print(isfunctionhooked(a)) --> false
hookfunction(a, function(num) old(num + 1) end)
print(isfunctionhooked(a)) --> true