Closure
Inspecting, wrapping, and replacing Luau and C functions.
Available Functions
| Function | Description |
|---|---|
| hookfunction | Hooks a Lua or C function. Returns a copy of the original function. |
| restorefunction | Restores a previously hooked Lua or C function to its original implementation. |
| isfunctionhooked | Returns a boolean indicating whether the function has been hooked. |
| newcclosure | Creates a new C closure for 'func'. |
| newlclosure | Creates a new Lua closure for 'func'. |
| iscclosure | Returns a boolean indicating whether the function is a C closure. |
| islclosure | Returns a boolean indicating whether the function is a lua closure. |
| isnewcclosure | Returns a boolean indicating whether the function has been created using newcclosure. |
| isexecutorclosure | Returns a boolean indicating whether the function has been created by Ionize. |
| isourthread | Returns a boolean indicating whether the thread is an Ionize thread. |
| getfunctionhash | Returns the hash of a lua function. |
| loadstring | "Creates a chunk from the provided source code. The environment of the returned function is the global environment. |
| setstackhidden | Hide a function from call stack based detections. |
| checkcaller | Returns true if the current function was invoked from the executor's own thread, false if called from game code. |
| clonefunction | Creates and returns a new function with the exact same behaviour as fn. |