How to Add Custom Emotes to dpemotes & rpemotes
You’ve got an animation. Maybe you bought a pack, maybe a friend sent you a .ycd, maybe you made it yourself. Now you want players to type /e yourdance and have it work. That takes two pieces: a resource that streams the clip, and an entry in your emote menu’s animation list.
Both are short. But “my custom emote doesn’t work” is one of the most common questions in every FiveM Discord I’m in, and it’s almost always one of three mistakes. This guide covers how to add custom emotes to dpemotes and rpemotes-reborn, props included, and the fix for each of those mistakes.
dpemotes, rpemotes or rpemotes-reborn?
They’re the same family. dpemotes is the original emote menu. Its repository is still up, but it hasn’t had a code update since 2024. rpemotes forked it, and rpemotes-reborn is the community fork that’s actively maintained today. It’s the one I’d install on a new server.
The entry format is nearly identical across all three. The differences that matter are that rpemotes-reborn has a separate file for your own emotes and newer animation options. I’ll cover both.
Step 1: Stream the Animation in Its Own Resource
Keep your custom clips in their own resource instead of dropping them into the emote menu’s folder. That way, updating the menu never touches your animations.
myserver_emotes/
├── fxmanifest.lua
└── stream/
└── myserver_dances.ycd
The manifest is minimal, because FiveM streams everything in stream/ by itself:
fx_version 'cerulean'
game 'gta5'
description 'Custom emotes for my server'
Two names matter from here on:
- The dictionary name is the
.ycdfile name without the extension. Here, that’smyserver_dances. - The clip name is the name of an animation inside that dictionary. One dictionary can hold several clips.
If the pack didn’t tell you its clip names, open the .ycd in CodeWalker, export it to XML, and read them off the clip list.
Make the dictionary name unique. If two resources stream a dictionary with the same name, one silently replaces the other, and you’ll chase a “random” bug for an hour. Prefixing everything with your server’s name avoids it.
Then add the resource to server.cfg:
ensure myserver_emotes
It has to stay started for as long as the emote should work. The menu doesn’t stream anything itself, it only points at your clip. New to resources in general? How to install FiveM scripts covers the basics.
Step 2: Add the Entry to dpemotes
Open dpemotes/Client/AnimationList.lua (the capital C is how it ships in the original repository). Find DP.Dances = { or DP.Emotes = {, and paste your entry inside the braces:
["mydance"] = {"myserver_dances", "my_dance", "My Dance", AnimationOptions =
{
EmoteLoop = true,
EmoteMoving = false,
}},
Reading it left to right:
["mydance"]is the command. Players type/e mydance."myserver_dances"is the dictionary."my_dance"is the clip inside it."My Dance"is the label in the menu.EmoteLoop = truerepeats the clip until the player cancels it. Keep it on for custom clips, for a reason we’ll get to.EmoteMoving = falseplays it full body. Set it totruefor upper-body-only emotes that let the player walk, like holding a phone to their ear.
For an emote that should play once and stop, add EmoteDuration in milliseconds, set to the clip’s length. The menu loops the clip and stops it after that time.
Mind the commas. The entry ends with }},, and a missing comma between two entries is a Lua syntax error that stops the whole list from loading. If every emote disappears after an edit, the F8 console will give you the line number.
Save, restart dpemotes or the server, and try /e mydance.
Step 2 (rpemotes-reborn): Use AnimationListCustom.lua
rpemotes-reborn gives you a file just for this: rpemotes-reborn/client/AnimationListCustom.lua. At load, it merges what’s in there into the main list, so your emotes survive when you update the menu and its main AnimationList.lua gets replaced.
The file ships with empty tables like CustomDP.Dances = {}. Put your entries inside the braces:
CustomDP.Dances = {
["mydance"] = {
"myserver_dances",
"my_dance",
"My Dance",
AnimationOptions = {
onFootFlag = AnimFlag.LOOP,
}
},
}
The layout is the same as dpemotes. The difference is the option: rpemotes-reborn now uses onFootFlag, set to AnimFlag.LOOP (flag 1) for a looping full-body emote or AnimFlag.MOVING (flag 51) for upper body while walking. The old EmoteLoop and EmoteMoving still work, because the menu converts them, but its type definitions mark them as deprecated. A dpemotes entry pasted as-is will run, but write new entries with onFootFlag.
Restart rpemotes-reborn after editing. If you split custom emotes across several list files, the comment at the top of the file explains the order: they must load after AnimationList.lua and before Emote.lua in the manifest.
Adding a Prop to an Emote
Prop emotes go in DP.PropEmotes, or CustomDP.PropEmotes in reborn. Here’s dpemotes’ own coffee cup emote, which makes a good template:
["coffee"] = {"amb@world_human_drinking@coffee@male@idle_a", "idle_c", "Coffee", AnimationOptions =
{
Prop = 'p_amb_coffeecup_01',
PropBone = 28422,
PropPlacement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
EmoteLoop = true,
EmoteMoving = true,
}},
Propis the model name of the object.PropBoneis the ped bone it attaches to.28422is the right hand’s prop point, and the most-used bone in dpemotes’ own list.60309is the left hand’s, which is what the glowstick dances use.PropPlacementis six numbers: the X, Y and Z offset from the bone, then the X, Y and Z rotation in degrees.
Getting placement right is trial and error. Change one number in small steps, restart the menu, check, repeat. A cup floating a few centimetres off is usually the offset. A prop that’s sideways is the rotation.
A custom prop works the same way, as long as the resource that streams the prop is started. If you’re making the prop too, how to make custom props in FiveM covers your options.
Why Custom Emotes Stop After a Split Second
This is the big one, so it gets its own section.
Custom clips have to be played with the loop flag. When a custom clip is played once, with animation flag 0, GTA cuts it off almost immediately. In our testing, that’s about 0.4 seconds. The player sees a twitch and nothing else, and it looks like the animation is broken when it isn’t.
That’s why every entry above loops. For an emote that should only play once, loop it and stop it after one clip length, with EmoteDuration in dpemotes or a timer in your own script.
The second rule is foot IK. GTA bends a ped’s legs to fit uneven ground. On a recorded or motion-captured clip, that fights the animation, and you get knees buckling on stairs and feet floating on slopes. Turn foot IK off while the clip plays and back on afterwards. Neither dpemotes nor rpemotes-reborn does this for you, so if a clip looks right on flat ground and wrong everywhere else, this is why.
Here are both rules in a script of your own:
local dict, clip = 'myserver_dances', 'my_dance'
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do Wait(0) end
local ped = PlayerPedId()
SetPedLegIkMode(ped, 0) -- foot IK off while the clip plays
TaskPlayAnim(ped, dict, clip, 8.0, -8.0, -1, 1, 0.0, false, false, false) -- flag 1 = loop
-- play once: stop after one clip length (5 seconds here)
SetTimeout(5000, function()
if IsEntityPlayingAnim(ped, dict, clip, 3) then
ClearPedTasks(ped)
end
SetPedLegIkMode(ped, 2) -- foot IK back on
end)
8.0 and -8.0 are the blend-in and blend-out speeds, -1 lets the clip run until something stops it, and 1 is the loop flag. If client scripts are new to you, the FiveM Lua scripting tutorial explains threads, waits and natives.
Troubleshooting Custom Emotes
| What you see | What’s usually wrong |
|---|---|
/e mydance says it isn’t a valid emote |
The entry isn’t inside a list, the menu wasn’t restarted, or a syntax error stopped the list loading (check F8) |
| Every emote vanished after your edit | A missing comma or brace. The F8 console names the line |
| It’s in the menu but nothing plays | The streaming resource isn’t started, or the dictionary or clip name doesn’t match exactly |
| It plays for a split second | Played with flag 0. Loop it, then stop it after one clip length |
| Knees buckle or feet float on slopes | GTA’s foot IK. Turn it off while the clip plays |
| A different animation plays | Another resource streams a dictionary with the same name |
| The prop floats away from the hand | Wrong bone, or the placement offsets need tuning |
Making the Clips Themselves
Everything above assumes you already have a .ycd. If you don’t, how to make custom animations in FiveM compares the three ways to get one: buying a pack, building it in Blender, or making it in-game.
Full disclosure, since it’s our script: the LMX Animation Creator turns a phone video, a recording of your own ped, or a skeleton you pose by hand into a .ycd in-game. Its Build Pack writes the streaming resource from step 1 and hands you the entry from step 2 with a Copy entry button, already looped. The pack also switches foot IK off while its clip plays, even when dpemotes or rpemotes-reborn is the one playing it. We tested it in both menus: normal speed, played to the end, looping cleanly.
Quick Answers
Can I add custom emotes without restarting the server?
Run refresh and then ensure myserver_emotes in the server console to start the new streaming resource, then restart the emote menu so it rereads its list. A full restart is still the cleanest way to be sure every player picked everything up.
Do custom emotes work on ESX, QBCore and Qbox? Yes. Emote menus and animations don’t depend on your framework.
Can I share emotes between dpemotes and rpemotes-reborn? Yes. A dpemotes entry works in rpemotes-reborn’s custom file as-is, and the streaming resource is the same either way.
Where can I get free custom emotes?
rpemotes-reborn ships hundreds of community animations in its own stream/ folder. The menu itself and plenty of other free tools are on our free FiveM scripts list.
Stuck on one that won’t play? Post the entry and your F8 output in our Discord.