> For the complete documentation index, see [llms.txt](https://grp-development.gitbook.io/solid-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://grp-development.gitbook.io/solid-scripts/resources/solid-injury-emotes/exports.md).

# Exports

Play and stop the emotes from your own resources.

All exports are client side.

#### play(name)

Plays an emote by its command name. Returns `true` if it started.

```lua
exports['solid-injury-emotes']:play('unconscious')
```

#### stop(instant)

Gets the player back up. `true` cancels at once.

```lua
exports['solid-injury-emotes']:stop()
exports['solid-injury-emotes']:stop(true)
```

#### isPlaying()

Returns whether an emote plays, and its name.

```lua
local playing, name = exports['solid-injury-emotes']:isPlaying()
```

#### list()

Returns every emote as `{ name, clip, label, loop, walk, ground, dictionary }`.

```lua
for _, emote in ipairs(exports['solid-injury-emotes']:list()) do
    print(emote.name, emote.label)
end
```

#### info()

Returns `{ label, description, count }`.

```lua
local pack = exports['solid-injury-emotes']:info()
```

{% hint style="info" %}
From the server, trigger your own client event and call the export there.
{% endhint %}
