oth
The oth library provides functions for hooking C closures with Luau callbacks.
Overview
The oth library allows you to:
- Hook C closures
- Remove hooks when no longer needed
- Access the original function even after multiple hooks
- Detect if code is running in a hook thread
Available Functions
| Function | Description |
|---|---|
oth.hook | Hook a C closure |
oth.unhook | Remove a hook created with oth.hook |
oth.get_root_callback | Get the original function |
oth.is_hook_thread | Check if running in a hook thread |
get_original_thread | Get the original thread |
Related Libraries
closures- Standard function hooking withhookfunction