# Exit Emotes

Exit Emotes are used to make cancelling an animation smooth and dynamic e.g. such as getting up from a chair or throwing a cigarette out instead of dropping it.

{% hint style="info" %}
Rpemotes-reborn comes with some exit emotes by default.
{% endhint %}

***

### Adding Exit Emotes

To add your own Exit emotes navigate to the following path:&#x20;

`rpemotes-reborn > client > AnimationListCustom.lua`

Find `CustomDP.Exits = {}` in the `AnimationListCustom.lua`

{% code title="AnimationListCustom.lua" %}
```lua
CustomDP.Exits = {}
```
{% endcode %}

Use the following template within the curly brackets&#x20;

{% code title="AnimationListCustom.lua" %}
```lua
CustomDP.Exits = {
    ["getup"] = {
        "get_up@sat_on_floor@to_stand",  -- Dictionary Name
        "getup_0", -- Emote Name
        "Get Up", -- Name in menu in GTA 5
        AnimationOptions = {
            EmoteDuration = 2000,
            StartDelay = 600
        }
    },
}
```
{% endcode %}

and change the values to desired values.&#x20;

Read hints below for more information:

{% hint style="info" %}
The dictionary name and emote name can be found on [this](https://forge.plebmasters.de/animations) website.
{% endhint %}

{% hint style="info" %}
The name in menu can be found in GTA 5&#x20;
{% endhint %}

{% hint style="info" %}
The Emote Duration refers to the duration of the exit emote. Tweaking the set value of 2000 is recommended for a smooth exit transition.
{% endhint %}

{% hint style="info" %}
Start Delay refers to the amount of time in milliseconds for the exit animation to start. By default the value is set to 600 which is equal to 0,6 seconds.
{% endhint %}

Below is an example of how this is implemented:

```lua
["sit"] = {
        "anim@amb@business@bgen@bgen_no_work@",
        "sit_phone_phoneputdown_idle_nowork",
        "Sit",
        AnimationOptions = {
            EmoteLoop = true,
            ExitEmote = "getup",
            ExitEmoteType = "Exits"
        }
    },
```

In the above example, the ExitEmote calls for the 'getup' emote, which is noted as the following:

```lua
["getup"] = {
        "get_up@sat_on_floor@to_stand",
        "getup_0",
        "Get Up",
        AnimationOptions = {
            EmoteDuration = 2000,
            StartDelay = 600
        }
    },
```

***
