CityRP Documentation Repository

core.plugins.animations.sv_init

Lime-Animations - Fully featured animations plugin.

Functions

ServerlimeAnimation.animByItemCat(cat) → stringSource ☍

Helper function to return the correct animation to use based on item category when giving an item

Parameters

  • catanyThe item category

Returns

  1. string
ServerlimeAnimation.current(ply) → unknownSource ☍

Get current animation.

Parameters

  • plyanyThe player entity

Returns

  1. unknownWhether animation is running.
ServerlimeAnimation.get(animation) → booleanSource ☍

Get an animation from animations table.

Parameters

  • animationanyThe animation name.

Returns

  1. booleanfalse.
ServerlimeAnimation.run(ply, animation, timeout, timeoutFn)Source ☍

Run an animation on a specific player.

Parameters

  • plyanyThe player entity
  • animationanyThe animation name
  • timeoutanyThe timeout function timeout.
  • timeoutFnanyThe timeout function.
ServerlimeAnimation.stop(ply)Source ☍

Stop specific/any animation. Also Fixes /handsdown animation.

Parameters

  • plyanyThe player entity

Tables

ServerlimeAnimationSource ☍
ServerlimeAnimation.animForGiveSource ☍

Fields

ServerlimeAnimation.animsSource ☍