VINDICTA.TOP
Hooking · Function Unregistered
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

isfunctionhooked

Returns whether a function has been hooked by a prior hookfunction call.

Unregistered
This function is not registered within sUNC, your executor may/may not have this.
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