ReferenceClosures

oth.is_hook_thread

Reports whether the current task is executing an oth hook body.

Syntax

oth.is_hook_thread() -> boolean

Returns

TypeDescription
booleanWhether the current task belongs to an oth hook.

Description

It does not mean that any arbitrary function on the current stack is hooked. Use isfunctionhooked to inspect a particular function instead.

Example

print(oth.is_hook_thread())

These are Game executor contracts. Check build requirements and session lifetimes before using them.