Module core.plugins.animations.sv_init

Lime-Animations - Fully featured animations plugin.

Module Overview

Functions

limeAnimation.current(ply) Get current animation.
limeAnimation.get(animation) Get an animation from animations table.
limeAnimation.run(ply, animation, timeout, timeoutFn) Run an animation on a specific player.
limeAnimation.stop(ply) Stop specific/any animation.
limeAnimation.animByItemCat(cat) Helper function to return the correct animation to use based on item category when giving an item

Functions

limeAnimation.current(ply)
Get current animation.

Parameters:

  • ply The player entity

Returns:

    bool Whether animation is running.
limeAnimation.get(animation)
Get an animation from animations table.

Parameters:

  • animation The animation name.

Returns:

    Animation-scene/or false.
limeAnimation.run(ply, animation, timeout, timeoutFn)
Run an animation on a specific player.

Parameters:

  • ply The player entity
  • animation The animation name
  • timeout The timeout function timeout.
  • timeoutFn The timeout function.
limeAnimation.stop(ply)
Stop specific/any animation. Also Fixes /handsdown animation.

Parameters:

  • ply The player entity
limeAnimation.animByItemCat(cat)
Helper function to return the correct animation to use based on item category when giving an item

Parameters:

  • cat The item category