Features
Exports
Client Exports

Client Exports

Get Animations

-- return: table - returns formatted animations
 
local config = exports["bablo-animations"]:getAnimations()

Reset Clipset/Walkingstyle

exports["bablo-animations"]:resetClipset()

Open Menu

exports["bablo-animations"]:openApp()

Play Animation

-- ped: number - the ped thats going to play the anim
-- animationName: string - name of the animation
 
exports["bablo-animations"]:playAnimation(ped, animationName)

Cancel Animation

exports["bablo-animations"]:cancelAnimation()

Get Animation

-- animationName: string - name of the animation
-- return: table - returns animationData from config
 
exports["bablo-animations"]:getAnimation(animationName)

Can Access

-- return: bool - returns if player is able to open menu
 
exports["bablo-animations"]:canAccess()

Set Access

-- state: bool - define the state that determines if the player can access the menu.
 
exports["bablo-animations"]:setAccess(state)

Set Cached Walkingstyle

exports["bablo-animations"]:setWalkingstyle()

Set Cached Expression

exports["bablo-animations"]:setExpression()

Check If Menu Is Open

exports["bablo-animations"]:isMenuOpen()

Disable Cancel Animation

-- state: bool - define the state that determines if you are able cancel or not.
 
exports["bablo-animations"]:disableCancelAnimation(state)

Can Cancel Animaiton

Is Animation Being Played

-- return what animations is being played or false if no animation is being played
 
LocalPlayer.state.isInAnimation