> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/scripting/hooks.md).

# Hooks

Run code when a resource starts or stops. Useful for initialization and cleanup.

## Functions

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Start</strong></td><td>Execute a callback when a resource starts.</td><td><a href="/pages/o37ZUVUFe1vYzMfxditm">/pages/o37ZUVUFe1vYzMfxditm</a></td></tr><tr><td><strong>Stop</strong></td><td>Execute a callback when a resource stops.</td><td><a href="/pages/GOOuIgyxlSbH5zMBNLXb">/pages/GOOuIgyxlSbH5zMBNLXb</a></td></tr></tbody></table>
