oth.is_hook_thread
Checks hook state.
Syntax
oth.is_hook_thread(handle?: any) -> boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
handle? | any | The handle value used by the call. |
Returns
| Type | Description |
|---|---|
boolean | The boolean result of the check. |
Description
oth.is_hook_thread is part of the Oth library. Oth works at the raw hook layer. It installs function hooks, exposes their handles and provides trampoline calls.
The call is a predicate: it inspects the current state and returns a boolean without modifying anything.
The aliases oth.is_hooked(target) resolve to the same implementation.
Example
local handle = oth.hook(print, function() end)
print(oth.is_hook_thread(handle), oth.is_hooked(print))
Notes
- Aliases:
oth.is_hooked(target). - Raw hooks bypass closure-level safety; always keep the returned handle so you can unhook.