# Unhook(integer)

Source: https://help.malighting.com/grandMA3/2.3/HTML/lua_objectfree_unhook.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
## Description

The **Unhook** Lua function removes a hook.

Hooks are an automatically triggered function that activates when a grandMA3 object changes. A hook can be created using the [HookObjectChange](/grandma3/2-3/lua_objectfree_hookobjectchange/) function.

## Arguments

- **Integer**:\
  This must be the integer matching the hook that should be unhooked.

|                                            |                                                                                                                                                                                                                                                                                |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ![](/img/grandma3/2-3/tip_gray-269535.png) | **Hint:**                                                                                                                                                                                                                                                                      |
|                                            | All hooks can be listed using the [DumpAllHooks](/grandma3/2-3/lua_objectfree_dumpallhooks/) function, but this does not reveal the corresponding hook integer ID. Use the [UnhookMultiple](/grandma3/2-3/lua_objectfree_unhookmultiple/) function if the integer is unknown.  |