RbxStu V3 Docs
  • Welcome
  • Information
    • Engine Information
      • Luau API Security
  • Stunc
    • Overview
    • Connections
    • Filesystem
      • readfile
      • writefile
      • appendfile
      • isfile
      • isfolder
      • listfiles
      • makefolder
      • delfile
      • delfolder
      • loadfile
      • dofile
  • Memory
    • getgc
    • reference_object
    • unreference_object
    • get_gc_threshold
  • Closures
    • isunhookable
    • makeunhookable
    • ishooked
    • restorefunction
    • hookfunction
    • hookmetamethod
    • isourclosure
    • iscclosure
    • islclosure
    • clonefunction
    • newcclosure
    • newlclosure
    • loadstring
Powered by GitBook
On this page
  1. Closures

makeunhookable

Overview of the makeunhookable function.

Function definition
function makeunhookable(closure: (...any) -> (...any)): ()

High-Level Overview

makeunhookable makes the passed function an unhookable function. This prevents it as being given to hookfunction as hookWhat, It does not limit it, however, and it can be used as hookWith.

Low-Level Overview

Internally, an std::vectorof all the unhookable functions of the session are kept. When the function is called, if the function is not already unhookable, it is pushed into the std::vector.

PreviousisunhookableNextishooked

Last updated 4 months ago