Rare Development
  • Rare Development
    • 🏠Home
    • 🔈Rare Development | Discord
    • 🏬Rare Develoment | Tebex
  • Informations
    • 📣Terms of Service
    • 🔑Receive and download
  • r_animations
    • 🧠Installation
    • ⚠️Common issues
    • ⚡Exports/Events
    • ➕Adding New Animations
  • r_mileage
    • 🧠Installation
    • ⚠️Common issues
    • ⚡Exports
  • r_vehiclelocks
    • 🧠Installation
    • ⚠️Common issues
    • ⚡Exports
Powered by GitBook
On this page
  • Open Menu
  • Cancel Animation
  • SetCanPlayAnimation
  • CanPlayAnimation
  • IsPlayingAnimation
  • StartAnimationPlay
  • SetCanCancelAnimation
  • GetAnimationFromSet
  • StopAnimation
  1. r_animations

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

PreviousCommon issuesNextAdding New Animations

Last updated 2 years ago

⚡