IonizeDocsionize.cc ↗

API Reference

Closure Library

Inspecting, wrapping, and replacing Luau and C functions.

15 members

hookfunctionHooks a Lua or C function. Returns a copy of the original function.restorefunctionRestores a previously hooked Lua or C function to its original implementation.isfunctionhookedReturns a boolean indicating whether the function has been hooked.newcclosureCreates a new C closure for 'func'.newlclosureCreates a new Lua closure for 'func'.iscclosureReturns a boolean indicating whether the function is a C closure.islclosureReturns a boolean indicating whether the function is a lua closure.isnewcclosureReturns a boolean indicating whether the function has been created using newcclosure.isexecutorclosureReturns a boolean indicating whether the function has been created by Ionize.isourthreadReturns a boolean indicating whether the thread is an Ionize thread.getfunctionhashReturns 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.setstackhiddenHide a function from call-stack based detections.checkcallerReturns true if the current function was invoked from the executor's own thread, false if called from game code.clonefunctionCreates and returns a new function with the exact same behaviour as fn.