# libtmux.Server:get_hook

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/server.lua#L746
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-server-get_hook/

```
get_hook: fun(
  self: libtmux.Server,
  name: string,
  options?: libtmux.SettingGetOptions,
):libtmux.Request<libtmux.HookRecord>
```

## Parameters

- `name` (`string`)
- `options` (`libtmux.SettingGetOptions?`)

## tmux command

The tmux commands behind `get_hook`.

- [`show-options`](/en/tmux/latest/manual/show-options/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_options_entry`](/en/tmux/latest/reference/c-variable-cmd_show_options_entry/) (attribute)
- [`cmd_show_options_exec`](/en/tmux/latest/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function)
