> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# isfunctionhooked

> Returns whether the provided function currently has a hook record. The argument must be a function.

<div className="real-function-page">
  ```lua theme={null}
  isfunctionhooked(func: function): boolean
  ```

  ## الوسائط

  <ParamField path={"func"} type={"function"} required>
    Function to check. Passing a non-function raises a type error.
  </ParamField>

  ## القيم الراجعة

  <ResponseField name={"hooked"} type={"boolean"}>
    true when the function is currently hooked; otherwise false.
  </ResponseField>

  ## مثال

  Check whether a function closure is tracked as a hook target.

  ```lua theme={null}
  local function target()
  end

  print(isfunctionhooked(target))
  ```
</div>
