isfunctionhooked
Returns true when the function has been replaced with hookfunction, and false for one that has not.
Signature
isfunctionhooked(function_to_check: (...any) -> ...any): booleanParameters
function_to_check(...any) -> ...anyThe function to ask about.
Returns
boolean
Example
local function target()
return 1
end
print(isfunctionhooked(target)) --> false
hookfunction(target, function()
return 2
end)
print(isfunctionhooked(target)) --> true