Skip to content

Configuration

Every option in shared/config.lua and the editable data files of Cuxial Emotes, with examples of the usual changes.

All settings live in shared/config.lua. The emote catalog and a few lists live in data/. Restart the resource after any change to the files.

What you save in the admin panel is stored in the database and wins over the file until you reset it. The values in these files are the factory values.

General ​

OptionTypeDefaultWhat it does
debugbooleanfalsetrue prints traces to the console. setr cuxial_emotes_debug 1 in server.cfg does the same without editing the file.

Interface (ui) ​

OptionTypeDefaultWhat it does
accentstringconfigurableAccent color of the menu, as a hex value such as '#3b82f6'.
blurbooleanfalsetrue blurs the game while the menu is open.
walkWhileOpenbooleantruetrue lets players walk with the menu open. false makes the menu block movement.
newEmoteDaysnumber14Days an emote with an Added date is shown with the "new" badge.

Staff (admin) ​

OptionTypeDefaultWhat it does
permissionstring'admin'Permission checked through cuxial_bridge for the admin panel, emote zones and, if commands.syncPos.adminOnly is true, /syncpos.
auditDaysnumber90Days the panel audit log is kept.

Commands (commands) ​

OptionTypeDefaultWhat it does
emote.namestring'e'Command that plays an emote: /e <emote> [variant]. /e c cancels.
emote.cooldownnumber1000Milliseconds between two emotes.
cancel.enabledbooleantruetrue registers a standalone cancel command. false leaves only the key and /e c.
cancel.namestring'c'Name of the standalone cancel command.
menu.namestring'animationmenu'Internal name of the keybind that opens the menu.
set.namestring'emoteset'Command that switches the active quick set: /emoteset <1-6>.
animEdit.enabledbooleantruetrue enables the position editor, both the command and the menu button.
animEdit.namestring'animedit'Name of the position editor command.
animEdit.maxDistancenumber3.0Meters a player can move away from the starting point while editing.
animEdit.canEditAllbooleantruetrue lets the command edit any emote. false limits it to looping emotes that use an animation dictionary.
syncPos.enabledbooleantruetrue registers the paired emote position editor (development tool).
syncPos.namestring'syncpos'Name of that command.
syncPos.maxDistancenumber6.0Maximum distance in meters while using the editor.
syncPos.adminOnlybooleanfalsetrue restricts it to staff. false lets anyone use it.
zones.namestring'emotezones'Command that opens the admin panel on the Zones tab.
zones.restrictedstring'group.admin'ACE group allowed to run the zone command.
admin.namestring'emoteadmin'Command that opens the admin panel.
admin.restrictedstring'group.admin'ACE group allowed to run that command.

Do not change menu.name on a live server. It is the key FiveM uses to store each player's binding: changing it resets the menu key for everyone.

Default keys (keys) ​

These are the keys a player gets the first time they join. Each player can rebind them in the GTA settings, under key bindings for FiveM.

OptionDefaultAction
menuF3Open the menu
cancelXCancel the current emote
acceptYAccept a paired emote or a suggestion
rejectXReject a paired emote or a suggestion
pointingBPoint with the finger
ragdollcommaFall to the ground
handsUpHHands up
crossArmsGCross arms
pronercontrolGo prone
crouchLCONTROLCrouch
photoPanelhPhoto mode: hide or show the panel
photoFocuslmenuPhoto mode: release or capture the cursor
quick1 to 5Quick emotes 1 to 5, pressed together with Shift

Changing a default key only affects players who have never joined with the resource. Everyone else keeps the key already stored in their game.

Dead players (deadCheck) ​

OptionTypeDefaultWhat it does
enabledbooleantruetrue stops dead players from using emotes.
useStateBagbooleantruetrue reads the player's dead state. false asks the game whether the ped is dead.

If cuxial_medical is running, the script asks it whether the player is dead and ignores these two options.

Emotes (emotes) ​

OptionTypeDefaultWhat it does
disableInCarbooleanfalsetrue blocks emotes inside a vehicle.
quickAnimsbooleantruetrue enables quick emotes (Shift + 1-5) and the set command.
maxPropsnumber8Maximum props per emote created on other players' screens.

Saved between sessions (saving) ​

OptionTypeDefaultWhat it does
walkStylebooleantruetrue remembers the chosen walk style.
expressionbooleantruetrue remembers the chosen expression.

Paired emotes (sync) ​

OptionTypeDefaultWhat it does
distancenumber10.0Maximum meters between two players for a paired emote.
pendingMsnumber30000Milliseconds a request stays alive without an answer.
cooldownMsnumber3000Minimum milliseconds between two requests or suggestions from the same player.

Reports (report) ​

OptionTypeDefaultWhat it does
enabledbooleantruetrue accepts broken emote reports sent from the menu. false rejects them.
cooldownnumber30Seconds between reports from the same player.
convarstring'cuxial_emotes:report_webhook'Name of the server.cfg convar that holds the Discord webhook.

Zones (zones) ​

Only applies when the cuxial_emotes_dlc add-on is running.

OptionTypeDefaultWhat it does
globalbooleanfalsetrue makes zone emotes available everywhere. false limits them to their zone.

Relations (relations) ​

These two options only apply when the cuxial_emotes_dlc add-on is running. The rest of the module is configured in the add-on's own files.

OptionTypeDefaultWhat it does
testShareDistancenumber3.0Meters within which other players see the result of a used test.
staleSessionSecnumber900Seconds after which a stuck session closes on its own.

Limits (limits) ​

OptionTypeDefaultWhat it does
favoritesnumber100Favorites per character.
nameLengthnumber64Maximum characters in an emote command.
setSlotsnumber6Number of quick sets.
setAnimsnumber4Maximum emotes stored per set.
recentsnumber15Entries kept in "recents".
usagenumber300Different emotes with a usage counter.
usageFlushMsnumber5000Minimum milliseconds between two saves of the usage counter.

Data files ​

FileContent
data/manifest.luaCategories shown in the menu and their order.
data/emotes/*.luaThe catalog: one file per category.
data/tags.luaWords the menu uses to tag emotes automatically for filters and search.
data/weapons.luaWeapons that allow a custom aiming animation.
data/photomode.luaPhoto mode limits (distance, speed, zoom, depth of field), blocked controls and the filter list.
data/bypass.luaDevelopment exceptions per character. Off by default.
locales/*.jsonAll texts, in English and Spanish.

Leave data/bypass.lua disabled in production. Its SharedEmotes group makes paired emotes start without asking the other player.

Common changes ​

Change the accent color ​

shared/config.lua
lua
ui = {
    accent = '#3b82f6',
},

Block emotes in vehicles ​

shared/config.lua
lua
emotes = {
    disableInCar = true,
},

Let everyone use the paired emote editor ​

shared/config.lua
lua
syncPos = { enabled = true, name = 'syncpos', maxDistance = 6.0, adminOnly = false },

Add your own emote ​

Open the category file where it belongs, for example data/emotes/general.lua, and add an entry to options:

data/emotes/general.lua
lua
{
    Label = 'Lean on wall',
    Command = 'leanwall',
    Dictionary = 'lean@wall',
    Animation = 'lean_clip',
    Options = {
        Flags = { Loop = true, Move = true },
        Duration = 4000,
    },
    Added = '2026-01-15',
},
FieldRequiredWhat it is
LabelYesName shown in the menu.
CommandYesUsed with /e. Must be unique across the whole menu.
Dictionary / AnimationYes, unless ScenarioAnimation dictionary and clip.
ScenarioAlternativeA GTA scenario name instead of dictionary and clip.
Options.FlagsNoLoop repeats the animation. Move plays it on the upper body in a loop, so the player can walk. Stuck plays it on the upper body and holds the last frame.
Options.DurationNoLength in milliseconds.
Options.PropsNoList of props: Name, Bone and Placement (two vec3: position and rotation).
Options.EnterEmoteNoCommand of an emote played once before this one.
Options.ExitEmoteNoName of an entry in data/emotes/exits.lua, played when a looping emote is cancelled.
TagsNoExtra tags for the menu filters.
AddedNoDate as 'YYYY-MM-DD'. Marks the emote as new for ui.newEmoteDays days.

A paired emote also needs Synchronized = true and Options.Shared.OtherEmote with the command the other player performs.

A custom animation dictionary needs its .ycd file inside the resource's stream/ folder. Native GTA dictionaries need nothing else.

Walk styles, expressions and scenarios use a shorter shape, in data/emotes/walks.lua, expressions.lua and scenarios.lua:

lua
{ Label = 'Brave', Command = 'brave', Walk = 'move_m@brave' },
{ Label = 'Angry', Command = 'angry', Expression = 'mood_angry_1' },
{ Label = 'ATM', Command = 'atm', Scenario = 'PROP_HUMAN_ATM' },

Add a category ​

  1. Create data/emotes/<file>.lua:
data/emotes/myserver.lua
lua
return {
    id = 'myserver',
    name = 'My Server',
    label = { es = 'Mi servidor', en = 'My server' },
    icon = 'fa-star',
    options = {
        -- emotes go here
    },
}
  1. Add the file name, without .lua, to categories in data/manifest.lua, in the position you want it to appear.

The menu reads the list from there. Nothing else needs to change.

Data icons are still written with fa-… names (for example fa-star). The interface no longer uses Font Awesome: it translates each fa-… name to its lucide equivalent, and a name with no equivalent shows a default icon.

Optional category fields:

FieldWhat it does
synced = trueLaunches all its emotes as paired.
hideInAll = trueLeaves the category out of the "All" filter.
syncDances = trueAdds a synchronized /e s<command> version of each emote. The dance category uses it.

© Cuxial