Skip to content

Emote packs and data ​

Emotes and related definitions are plain Lua tables. Pack files return a table; they do not need to mutate globals. The server loads files listed by data/packs/index.lua, validates definitions, and sends a compact registry snapshot to clients.

lua
return {
  pack = 'my_pack',
  override = false,
  emotes = {
    {
      id = 'coffee',
      label = 'Coffee',
      category = 'food',
      tags = { 'drink', 'cup' },
      anim = {
        dict = 'amb@world_human_drinking@coffee@male@idle_a',
        clip = 'idle_c',
        flags = { 'loop', 'upperBody', 'controllable' },
      },
      props = {
        { model = 'p_amb_coffeecup_01', bone = 'right_hand_ph' },
      },
    },
  },
}

An emote needs an id and either anim or scenario. It can also define aliases, props, particle effects, shared partners, placement mode, restrictions, rules, cooldown, and an exit emote. The supported fields, animation flags, bones, walks, moods, seats, and routines are described in the data reference.

Built-in packs and credits ​

The np_emotes resource is licensed under GPL-3.0. The base pack contains np_menu's built-in emotes and walks, seat emotes, base walk styles, and moods. The separate rpemotes-reborn conversion was generated from upstream client/AnimationList.lua by tools/import/rpemotes.lua. It includes 1,047 emotes, 139 walk styles and 38 moods that use vanilla animations and props. Entries that require streamed custom animation dictionaries or props are excluded; their reasons are recorded in the pack's EXCLUDED.txt. The converted data remains under GPL-3.0. Keep its upstream license and credits (data/packs/rpemotes/CREDITS.md and LICENSE) when distributing the pack.

Adding a pack file ​

  1. Add a Lua file in its pack folder.
  2. Add its filename to that folder's index.lua.
  3. Enable the pack in Config.Packs.enabled and list the pack in Config.Packs.list if it is not already indexed.
  4. Restart np_emotes or use the staff pack reload action.

For addon resources, call exports.np_emotes:registerEmotes(pack) on the server. Registrations are tracked by the calling resource and removed when that resource stops. See Integrations for the addon pattern and DATA.md for the full schema and importer usage.

Duplicate ids keep the first definition unless the new entry or pack sets override = true. Exact duplicate animations merge aliases. Invalid definitions are skipped and reported in the server log.