Exports/Events
Events
Open Menu
This event open menu.
TriggerEvent('lvs_animations:client:OpenMenu')
Cancel Animation
This event cancels the animations
TriggerEvent('lvs_animations:client:StopAnimation')
Exports
SetCanPlayAnimation
This export allows or disallows playing animations.
exports.lvs_animations:SetCanPlayAnimation(false)
CanPlayAnimation
This export show that is player allowed to play animations based on the previous export.
exports.lvs_animations:CanPlayAnimation()
IsPlayingAnimation
This export shows if the player is currently playing the animation.
exports.lvs_animations:IsPlayingAnimation()
StartAnimationPlay
This export start animation for player.
exports.lvs_animations:StartAnimationPlay(animation)
-- Example:
-- exports.lvs_animations:StartAnimationPlay('dance2')
SetCanCancelAnimation
This export allows or disallows canceling animations.
exports.lvs_animations:SetCanCancelAnimation(false)
GetAnimationFromSet
This export return animation from set
exports.lvs_animations:GetAnimationFromSet(setnumber, animnumber)
-- Example:
-- exports.lvs_animations:GetAnimationFromSet(1, 2)
-- return
StopAnimation
This export cancels the animations
exports.lvs_animations:StopAnimation()
Last updated