Installation ​
Requirements ​
- A current FiveM server artifact with Lua 5.4.
- OneSync enabled for shared sessions and synchronized player state.
- oxmysql for character profiles and saved custom emotes.
- np_prophandler for synchronized emote prop attachments. Particle effects are replicated and rendered by np_emotes.
- Bun to build the bundled NUI when installing from source. Release packages include the built UI.
Framework and inventory bridges are optional. ESX, qbx, qb, and standalone are supported. np_admin is optional for staff permission management and audit logs.
Steps ​
-
Install the resource folder as
np_emotes. Keep this resource name so its UI callbacks and exports resolve. -
If building from source, build the UI once:
shcd web npm ci npm run build -
Start the dependencies before np_emotes:
cfgset onesync on ensure oxmysql ensure np_prophandler ensure es_extended # or qbx_core / qb-core; optional ensure np_admin # optional: staff permissions, settings, and logs ensure np_emotes ensure np_menu # optional companion version with DeferEmotesToStart your chosen framework before np_emotes so the correct character and job bridge is selected. Start any optional resources you use before or after np_emotes; their integrations check resource state and provide a local fallback when a sibling is unavailable.
If using the np_menu companion integration, set
Config.DeferEmotesTo = 'np_emotes'in np_menu. Its emote and walk entries then open the np_emotes library and wheel; np_menu's built-in choices remain available as a fallback when np_emotes is stopped. -
The server creates the profile and custom-emote tables from
sql/np_emotes.sqlduring startup when oxmysql can create them. If the database account cannot create tables, apply that SQL file manually. -
Grant staff nodes in np_admin or configure
Config.Staffand the fallback framework admin groups. See Staff and permissions.
Keep the resource folder writable if staff should also export saved custom emotes to
data/custom/custom.lua; the MySQL table remains the source of truth while oxmysql is running.
First use ​
Players can open the library with F3 and hold B for the emote wheel. These are defaults; players can rebind them under FiveM's Settings → Key Bindings → FiveM. The cancel key and repeat-last key start unbound. Chat commands are listed in Exports, events, and commands.
Troubleshooting ​
| Symptom | Check |
|---|---|
| UI does not open | Confirm web/dist/index.html exists in the installed resource. Build the UI if installing from source. |
| Props do not appear for other players | Confirm np_prophandler starts before or alongside np_emotes and check its attachment logs. |
| Profile changes do not persist | Check oxmysql startup, database permissions, and the np_emotes_profiles table. |
| Custom emotes do not load | Check the np_emotes_custom table and the startup log for database or pack validation errors. |
| A key does nothing | Check the player's FiveM key bindings; an existing saved binding takes precedence over the configured default. |