Welcome to the official documentation for the xmmx_twentyvsone (20 vs 1 Balloon Pop Script & Props) resource used in custom FiveM servers. This GitBook will walk you through installing, configuring, and using the resource.
π§ Installation
Download & extract this resource into your resources/ directory.
Ensure the resource is named xmmx_twentyvsone (or update all references if renamed).
Configure your config.lua to match your items, models, distances, animations, and control keys.
Add the usable items to your inventory system (find them in the .INSTALL folder):
Add item images to your inventory images folder (find them in the .INSTALL/images folder).
Add below listed dependencies to your server resources/ directory:
Dependency Name:
Dependency Link:
Fun balloon prop attachment & popping animation
Balloon effects with screen shake and sound effects
Support for QB-Core, QBX-Core, and ESX (configure others in bridge and editable)
Optional prop placement system (backdrops)
Optimized for performance and extensibility
π Installation Guide
1. Download & Install
Place the resource in your resources/[local] folder:
Ensure it is named exactly: xmmx_twentyvsone
2. Add to server.cfg
βοΈ Dependencies
A functional inventory system (supporting useable items)
One of the following frameworks:
π§ Configuration
Edit configs/config.lua to fit your server's needs:
Enable command use without inventory items for testing.
Make sure these item names match your inventory system:
You can add more balloon models if available.
β¨ Spawning a Balloon
If commands are enabled:
/balloon
If using items:
π Spawning a Backdrop
/backdrop or use the xm_bp_backdrop item.
β Popping Balloons
Stand near a player with a balloon.
Press E (default key: 38)
Must have xm_needle item in inventory
π» Screen Shake and Visual FX
Nearby players will see a balloon pop animation
Optional screen shake & audio
π§° Integration
The resource includes automatic integration for QBCore, QBX, and ESX:
Adds usable items for balloons & backdrops
Handles balloon toggling and spawning
No changes are needed unless you're customizing item behavior. Do so in the server/editable.lua.
π« Server Exports
exports.xmmx_twentyvsone:ToggleBalloon(source)
This export toggles the balloon prop for a player. It handles:
Attaching a balloon model to the player's hand
Playing a holding animation
Syncing visibility to other clients
Starting/stopping the idle loop animation
Usage:
You can call this export manually or through item usage.
exports.xmmx_twentyvsone:SpawnBackrop(source)
This export spawns a backdrop object in front of the player and allows them to move/rotate it interactively using configured keys.
Usage:
The player must own the configured BackdropItem to place the prop (unless command mode is enabled).
βοΈ Backdrop Controls
π Localization
You can easily change in-game Notifications and DrawText in Config.Locales table.
π¨ Troubleshooting
Nothing happens when using item : Check that the item name matches your inventory database
Can't pop balloons : Ensure you have the needle item in inventory
Animations not playing : Make sure all required animation dictionaries exist
Script developed by XMMX Development
Balloon model: Rockstar Games (GTA V)
Custom assets and UI created for immersive events
β¨ Coming Soon
Multiple balloon model support
Game-based events like 20vs1 game questionaire
For issues or suggestions, open a ticket via discordarrow-up-right .
Happy popping! π
Last updated 7 months ago