Server Exports

Get Animations

-- return: table - returns formatted animations

local config = exports["br-animations"]:getAnimations()

Play Animation

-- source: number - The player source that will play the animation
-- animationName: string - name of the animation

exports["br-animations"]:playAnimation(source, animationName)

Cancel Animation

-- source: number - The player source is used to trigger the cancel animation

exports["br-animations"]:cancelAnimation(source)

Get Animation

-- animationName: string - name of the animation
-- return: table - returns animationData from config

exports["br-animations"]:getAnimation(animationName)

Last updated