> For the complete documentation index, see [llms.txt](https://raredevelopment.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raredevelopment.gitbook.io/docs/r_animations/exports-events.md).

# Exports/Events

### **Open Menu**

```lua
TriggerEvent("rd-animations:OpenMenu")
```

This event open menu.&#x20;

### Cancel Animation

```lua
TriggerEvent("rd-animations:StopAnimation")
```

This event cancels the animations

### **SetCanPlayAnimation**

```lua
exports['r_animations']:SetCanPlayAnimation(false)
```

This export allows or disallows playing animations.&#x20;

{% hint style="info" %}
**All exports are client-sided**
{% endhint %}

### CanPlayAnimation

```lua
exports['r_animations']:CanPlayAnimation()
```

This export show that is player allowed to play animations based on the previous export.

### IsPlayingAnimation

```lua
exports['r_animations']:IsPlayingAnimation()
```

This export shows if the player is currently playing the animation.

### StartAnimationPlay

```lua
exports['r_animations']:StartAnimationPlay(animation)
```

This export start animation for player. Example:&#x20;

```lua
exports['r_animations']:StartAnimationPlay('dance2')
```

### SetCanCancelAnimation

```lua
exports['r_animations']:SetCanCancelAnimation(false)
```

This export allows or disallows canceling animations.&#x20;

### GetAnimationFromSet

```lua
exports['r_animations']:GetAnimationFromSet(setnumber, animnumber)
```

This export return animation from set. Example:&#x20;

```lua
exports['r_animations']:GetAnimationFromSet(1, 2)
```

### StopAnimation

```lua
exports['r_animations']:StopAnimation()
```

This export return cancels the animations
