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

ishooked

Overview of the ishooked function.

Function Characteristics

This function is pure; it does not modify any data when called.

Function definition
function ishooked(closure: (...any) -> (...any)): boolean

High-Level Overview

ishooked returns true for any function passed into it that has been hooked in this session.

Remarks

The function will return false if the function has been hooked but later restored using restorefunction.

Low-Level Overview

Internally an std::map is kept, with all hooked functions as the key and metadata on the hook as the value; the function is checked using the pure containsfunction, as using brackets to index will implicitly create the value and return the default.

PreviousmakeunhookableNextrestorefunction

Last updated 4 months ago