isfunctionhooked
Checks whether a function has an active hook.
Syntax
Signature
isfunctionhooked(Target: function) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Target | function | Original function to inspect or replace. |
Returns
| Type | Description |
|---|---|
boolean | True when Target is currently tracked as hooked. |
Example
Luau
local Result = isfunctionhooked(function() return 42 end)
print(Result)