Exports/Events

Open Menu

TriggerEvent("rd-animations:OpenMenu")

This event open menu.

Cancel Animation

TriggerEvent("rd-animations:StopAnimation")

This event cancels the animations

SetCanPlayAnimation

exports['r_animations']:SetCanPlayAnimation(false)

This export allows or disallows playing animations.

All exports are client-sided

CanPlayAnimation

exports['r_animations']:CanPlayAnimation()

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

IsPlayingAnimation

exports['r_animations']:IsPlayingAnimation()

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

StartAnimationPlay

exports['r_animations']:StartAnimationPlay(animation)

This export start animation for player. Example:

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

SetCanCancelAnimation

exports['r_animations']:SetCanCancelAnimation(false)

This export allows or disallows canceling animations.

GetAnimationFromSet

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

This export return animation from set. Example:

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

StopAnimation

exports['r_animations']:StopAnimation()

This export return cancels the animations

Last updated