Description
MD Speed Bag adds a real boxing speed bag to RedM. Players mount it on a wall or a ceiling, then train with rhythm: each tap builds speed, the bag rebounds faster and faster against the platform, and every player around sees exactly the same motion.
The bag is driven by a synchronized physics simulation (rebounds, spin, hand contact), not a looped animation. Custom bag, platform and mounts, custom animations and impact sounds. Bags are saved in the database and stay in place after a restart.
Standalone resource: works bare-handed, no gloves required. It also works alongside MD Boxing Gloves and MD Punching Bag with no shared dependency.
Features
- Rhythm training: hold right mouse to guard, tap E to the rhythm to speed up the bag (cadence builds up, then slows down when you stop)
- Synchronized physics: rebounds against the platform, spin and damping, hand contact computed from the real hand shape, server-authoritative state with client interpolation
- Optimized: allocation-free contact solver, throttled checks while training, bag data only sent to nearby players
- Placement on a wall or a ceiling with a live preview
- Free camera with a fixed mounting point to place the bag precisely
- Automatic hand height: the bag is placed at the character’s forehead height
- Shift + wheel: rotation, automatic suspension length on ceilings (0.2 → 1.2 m)
- Clearance and stable ground checks in front of the bag
- Adjust an installed bag at any time (J or
/adjustspeedbag) - Character scale support (0.5× → 2.0×) for servers that resize peds
- One user at a time per bag, weapon must be holstered
- 3 impact sounds played to nearby players, with configurable volume
- Pack your bag with G or
/packspeedbag: the item goes back to the inventory with its metadata - Persistence with oxmysql (bags survive restarts); an invalid saved row is skipped and logged instead of breaking the resource
- Limits: bags per character (
MaxBagsPerCharacter) and total installed bags (maxBags) - Only the owner can pack or adjust a bag (or ACE
md_boxing.admin) - Server-side security: distance, routing bucket, limits, sessions, rate limits and item possession checked on the server
- Safe inventory flow: full inventory = bag stays installed, interrupted operations are journaled (no duplication, no automatic refund)
- Frameworks: VORP, RSG, standalone (no inventory) or custom
- Inventories:
vorp_inventory,rsg-inventory, or any other inventory through an open bridge - Locales: English and French (editable)
- No ox_lib or ox_target needed
Developer API
Client exports:
exports['md_speedbag']:UseSpeedBag()
exports['md_speedbag']:PackNearestBag()
exports['md_speedbag']:AdjustNearestBag()
exports['md_speedbag']:IsTraining()
exports['md_speedbag']:FindSpeedBag() -- nearest bag, or nil
exports['md_speedbag']:GetSpeedBag(id)
Server exports:
exports['md_speedbag']:UseItem(source, 'speed_bag', slotOrId)
exports['md_speedbag']:GetBags(bucket) -- bucket is optional
Open files (not escrowed)
config.lua, config/*.lua, locales/*.lua, bridge/*.lua, install/* — framework, inventory, keys and character bridges are fully editable.
Installation
- Drop
md_speedbagin your resources (keep the folder name). - In
config.lua, keepFramework = 'auto'(detects VORP or RSG) or set'standalone'/'custom', and chooseLocale('en'or'fr'). - VORP: import
install/vorp_items.sql. RSG: add the entry frominstall/rsg_items.luatorsg-core/shared/items.lua. - Copy
install/images/speed_bag.pngto your inventory image folder. ensure oxmysqlthenensure md_speedbagafter your framework and inventory. The SQL table is created automatically.
Full documentation is included in INSTALL.html.
Preview
Download
Store: https://shop.medouille.com/redm/md-speed-bag
| Code is accessible | Partially (config, locales and bridges are open) |
| Subscription-based | No |
| Lines (approximately) | ~3 500 |
| Requirements | OneSync, oxmysql, VORP / RSG / standalone |
| Support | Yes |
| Assets are accessible | No |
| Subscription-based | No |
| Polygons (model and LOD) | TODO |
| Texture size and amount | 1 texture dictionary: 3 × 2048×2048 (albedo, normal, material) |
| Requirements & dependencies | OneSync, oxmysql, VORP / RSG / standalone |
| Support | Yes |
