Closures
Create, inspect, clone and hook functions.
27 functions
| Function | Summary |
|---|---|
checkcallercheck_caller | Tells a hook who called it: your own script, or the game. |
cloneclosure | The same function as clonefunction, under another name. |
clonefunctionclonefuncclone_function | Makes a copy of a function that is a different value but behaves the same. |
comparefunctioncomparefunctions | Checks whether two functions are the same underlying function, even when one is a copy. |
get_original_threadoth.get_original_thread | Returns the waiting caller thread from inside an oth hook. |
getfunctionhashget_function_hash | Returns a hash that identifies a Luau function's code. |
hookfunctionhookfuncreplaceclosurehook_func+2 | Replaces a function in place, so every existing reference to it runs your hook instead. |
hookmetamethodhook_meta_method | Hooks one metamethod of an object's metatable. |
hookproto | Makes every closure created from the prototype after this call run hook's body instead of its own. |
iscclosureis_c_closure | Checks whether a function is implemented in C rather than written in Luau. |
isexecutorclosurecheckclosureisexecutorfunctionisourclosure+3 | Checks whether a function was created by your code or by Apex, rather than by the game. |
isfunctionhookedisfunchookedis_function_hooked | Checks whether a function is currently hooked. |
islclosureisluaclosureis_l_closure | Checks whether a function is written in Luau rather than implemented in C. |
isnewcclosureiscustomcclosure | Checks whether a C function is a wrapper made by newcclosure. |
isprotohooked | Checks whether a prototype is currently hooked. |
isstackhiddenis_stack_hidden | Reads the hidden-frame mark for a function or visible caller level. |
loadstringload_string | Compiles Luau source into a function you can call. |
newcclosurenew_c_closure | Wraps a Luau function in a C function. |
newlclosurenew_l_closure | Wraps any function in a new Luau function. |
oth.get_root_callback | Returns the hook function associated with the current oth hook context. |
oth.hook | Installs a hook whose body runs in a separate task while the caller waits for its results. |
oth.is_hook_thread | Reports whether the current task is executing an oth hook body. |
oth.unhook | Removes an oth hook from a function. |
restorefunctionrestoreclosurerestorefuncrestore_function | Undoes hookfunction, giving a hooked function its original behavior back. |
restoreproto | Undoes hookproto. |
setstackhiddenset_stack_hidden | Controls whether a function’s frames appear in Apex’s supported stack-inspection views. |
trampoline_calltrampolinecall | Calls a function as if it had been called from a different place. |
No function in Closures matches that filter.
