---
title: "isfunctionhooked"
description: "Queries Byte's managed hook state."
---

```lua
isfunctionhooked(fn: function): boolean
```

---

## Aliases

None.

---

## Arguments

<ParamField body="fn" type="function" required>
  The function to inspect or wrap.
</ParamField>

---

## Returns

<ResponseField name="result" type="boolean">
  Whether the queried condition holds.
</ResponseField>

Does not detect hooks outside Byte's own tracking.

---

## Example

```lua
local function sample() return 1 end
print(isfunctionhooked(sample))
```
