Server Exports
Get Animations
LUA
-- return: table - returns formatted animations
local config = exports["bablo-animations"]:getAnimations()Play Animation
LUA
-- source: number - The player source that will play the animation
-- animationName: string - name of the animation
exports["bablo-animations"]:playAnimation(source, animationName)Cancel Animation
LUA
-- source: number - The player source is used to trigger the cancel animation
exports["bablo-animations"]:cancelAnimation(source)Get Animation
LUA
-- animationName: string - name of the animation
-- return: table - returns animationData from config
exports["bablo-animations"]:getAnimation(animationName)
