CityRP Documentation Repository

core.plugins.animations.sh_animations

=== Player animations === (c) [email protected] The following code is property of its respective owner

Functions

SharedGetAnimationsByCategory() → table, tableSource ☍

Buckets registered animations by their optional Category field (unlike the Q-menu, which groups by Type) for the quick animation menu. Categories and each category's entries are alphabetical, except "Other" (the default for untagged entries), which always sorts last regardless.

Returns

  1. 1tableCategory name -> array of {id=, anim=}
  2. 2tableCategory names in display order