Skip to content

Integrations ​

np_emotes can run on its own with its built-in behavior. Optional adapters are detected while resources start and provide a fallback when a sibling is absent. Config.Integrations[name] = false disables that adapter. Startup logs report whether each adapter is active, using a fallback, or missing an expected export.

The adapters cover:

Resource Role
np_prophandler Required. Owns synchronized prop attachments; np_emotes replicates and renders its particle effects.
np_admin Optional. Staff permission nodes, live settings, staff actions, and audit logs.
np_crouch-crawl-shoot Coordinates stance blocking and restores walk styles after stance changes.
np_inventory Hands-up state and item-linked emotes. np_emotes reads the hands-up state and yields; it does not set the inventory state itself.
np_menu With the companion's Config.DeferEmotesTo = 'np_emotes', its emote and walk entries open this library and its radial opens the wheel. np_emotes also reads menu-open state and legacy walk-style data. The built-in np_menu emote and walk definitions are included in the base pack as a fallback.
np_character / np_clothing Reapply saved walk style and mood around character or appearance changes.
np_hud Prompts and current-emote display.
np_phone Phone integration hooks where available.
np_medic, np_police, np_security Downed, cuffed, escorted, or detained state checks and related locks. Police escort remains owned by np_police.
Other np_* resources Optional calls, hooks, or event adapters; see integrations/ for the exact adapter list.

Frameworks and inventory ​

Framework bridges support ESX, qbx, qb, and standalone. ESX character identifiers remain character-scoped for profile storage. When np_inventory or ox_inventory is running, restricted emotes can check for an item requirement.

OneSync is required for the server's shared-player sessions and replicated state.

Existing emote-menu compatibility ​

The client exposes compatibility exports for rpemotes, dpemotes, and scully_emotemenu scripts. It also ships the np_menu built-in emotes and walk styles in the base pack. Configure the companion version of np_menu to defer its emote and walk menu entries to np_emotes when you want one library across both resources.

Writing an addon pack ​

An addon pack can register emotes on the server:

lua
local ok, result = exports.np_emotes:registerEmotes({
  pack = 'my_dance_pack',
  emotes = {
    { id = 'my_dance', anim = { dict = 'anim@amb@nightclub@mini@dance@dance_solo@', clip = 'high_center' } },
  },
})

The registration belongs to the calling resource and is removed when that resource stops. Packs that use custom animation dictionaries must ship their streamed assets in their own resource. See Packs and data and Exports.