> For the complete documentation index, see [llms.txt](https://fivem.lvsoft.com.ar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivem.lvsoft.com.ar/standalone/lvs-animations/exports-events.md).

# Exports/Events

## Events

### Open Menu

This event open menu.&#x20;

```lua
TriggerEvent('lvs_animations:client:OpenMenu')
```

***

### Cancel Animation

This event cancels the animations

```lua
TriggerEvent('lvs_animations:client:StopAnimation')
```

***

## Exports

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

### SetCanPlayAnimation

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

```lua
exports.lvs_animations:SetCanPlayAnimation(false)
```

***

### CanPlayAnimation

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

```lua
exports.lvs_animations:CanPlayAnimation()
```

***

### IsPlayingAnimation

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

```lua
exports.lvs_animations:IsPlayingAnimation()
```

***

### StartAnimationPlay

This export start animation for player.&#x20;

```lua
exports.lvs_animations:StartAnimationPlay(animation)
-- Example:
-- exports.lvs_animations:StartAnimationPlay('dance2')
```

***

### SetCanCancelAnimation

This export allows or disallows canceling animations.

```lua
exports.lvs_animations:SetCanCancelAnimation(false)
```

***

### GetAnimationFromSet

This export return animation from set

```lua
exports.lvs_animations:GetAnimationFromSet(setnumber, animnumber)
-- Example:
-- exports.lvs_animations:GetAnimationFromSet(1, 2)
-- return
```

***

### StopAnimation

This export cancels the animations

```lua
exports.lvs_animations:StopAnimation()
```
