> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-city-hall/opening.md).

# Opening

Players open City Hall by walking up to the desk ped. The interaction is set by `Config.Interaction`:

* `'target'`: qb-target or ox\_target
* `'textui'`: an **E** prompt
* `'auto'`: picks based on what's running

From your own scripts, you can open or close it with:

```lua
exports.sbcityhall:Open()
exports.sbcityhall:Close()
-- or
TriggerClientEvent('sbcityhall:client:open', src)
```

Press **Esc** to close the UI.
