> 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/stop.md).

# Stop

Execute a callback when a resource stops.

{% hint style="info" %}
**Side:** Shared · **Category:** Hooks · **API:** `LT.Hooks.Stop`
{% endhint %}

## Example

```lua
LT.Hooks.Stop(function()
    print("Resource stopped.")
end)
```

## Parameters

| Name       | Required | Description                            |
| ---------- | -------- | -------------------------------------- |
| `cb`       | Yes      | fun()                                  |
| `resource` | No       | Defaults to the current resource name. |
