🫂 Carry Script & Anim Browser
The mulderdev_carry script not only offers a fully featured system for carrying players but also includes a massive, integrated Animation Browser to test and browse through hundreds of RDR2 animations directly in-game.
✨ Features
1. Carry System
The carry system allows you to transport other players in two different ways:
- Carry Mode (Leadout Style): You take the player by the arm and lead them.
- Grab Mode (Grabbed Style): You throw the player over your shoulder.
While a player is being carried, the target loses all controls and is invulnerable ("no collision"). The carrier's movement speed is restricted.
2. Animation Browser 🎬
A massive tool for roleplay testers and developers! With this command, a UI browser opens where you can browse through over 400 predefined animation dictionaries:
- Select a category (e.g.,
script_common@,amb_rest@,amb_camp@). - Entering an animation name (
idle,walk,action_01). - Test the animation immediately on your own character.
- Features a Loop mode and a Stop button.
📥 Installation
- Copy the
mulderdev_carryfolder into yourresourcesfolder. - Add the script to your
server.cfg:ensure mulderdev_carry - Restart the server.
🎮 Commands
All default commands can be customized in the config.lua.
Carrying
| Command | Action | Second Input |
|---|---|---|
/carry | Carry Mode: Grabs the nearest player by the arm | Releases the player |
/grab | Grab Mode: Throws the player over the shoulder | Releases the player |
Animation Browser
| Command | Action |
|---|---|
/animbrowser or /anim | Opens the animation menu |
⚙️ Configuration (config.lua)
The script is entirely customizable. You can change not only the commands and distance but also precisely adjust the coordinates, bones, and animations used for carrying.
Example Config.Carry (Leadout Style)
Here you can adjust, for example, on which bone the target player is attached (AttachBone = 24816) and how high (OffsetZ) or low (OffsetX/Y) they hang in relation to the carrier.
Config.Carry = {
Command = "carry", -- Chat command
Distance = 2.0, -- Interaction distance
-- Animation for the carrier
Carrier = {
AnimDict = "script_story@mar8@ig@ig5_carry",
AnimName = "action_01_walk_charles",
AnimFlag = 25,
},
-- Details for the carried player
Target = {
AnimDict = "script_story@mar8@ig@ig5_carry",
AnimName = "action_01_walk_uncle",
AnimFlag = 25,
AttachBone = 24816, -- Bone to attach them to
OffsetX = -0.35,
OffsetY = -0.05,
OffsetZ = 0.0,
RotX = 0.0,
RotY = 0.0,
RotZ = 0.0
}
}
The Config.Grab Option
Built exactly like Config.Carry, but uses mech_carry_ped@dead@carried@human animations to mimic the typical "throw over the shoulder". The offsets (e.g., OffsetZ = 0.70) ensure the player lies higher on your back.