Player vs Player Minigames for RedM — RSG-Core
--- SCRIPT PREVIEW ---
Description
Pure PvP Games brings a complete suite of competitive player-vs-player minigames to your RedM server. Challenge nearby
players, place bets, and let spectators wager on the outcome — all through a beautifully crafted, RDR2-themed NUI
interface.
Whether your players want a quick game of chance or an intense 1v1 shootout, this resource has it all.
---
Features
5 Game Modes:
- Rock Paper Scissors — Classic hand game with animated showdown
- Dice Duel — Roll dice head-to-head, highest total wins
- Coinflip — Heads or tails, 50/50 pure luck
- Gun Duel — 1v1 shootout with countdown and arena support
- Fist Fight / Boxing — Knockout-based brawl with configurable health threshold that allows knockout to avoid death.
- Knockout system can be global to the server for all fist fights.
Spectator Betting System:
- Nearby players can bet on Gun Duel and Fist Fight outcomes
- Configurable house edge, proportional payouts, and max bettors per side
- Dedicated /bet command with a full betting UI
Immersive RDR2-Themed UI:
- Fully custom HTML/CSS/JS NUI — no generic menus
- Western-styled fonts (Rye), RDR2-fitting backgrounds and icons
- Smooth animations for dice rolls, coin flips, and RPS showdowns
- Tabbed game selection menu (Games / Combat)
- Timed invitation system with accept/decline
Fully Configurable:
- Enable/disable individual game modes
- Set min/max/default bet amounts per game
- Adjustable cooldowns, timeouts, and animation timing
- Proximity-based player detection with configurable range
- Optional arena locations for Gun Duel and Fist Fight
- Cash or bank money support
- Toggle spectator betting per game type (For the Hand Combat and Gun Duel)
Multi-Language Support:
- English and Bulgarian included out of the box
- Easily add new languages by copying the locale template
- All UI and notification text is translatable
---
Dependencies
- https://github.com/Starter-Framework/rsg-core
- https://github.com/overextended/ox_lib
---
Commands
┌────────────────────────────┬──────────────────────────────────┐
│ Command │ Description │
├────────────────────────────┼──────────────────────────────────┤
│ /games │ Open the PvP Games menu │
├────────────────────────────┼──────────────────────────────────┤
│ /rps [playerID] [bet] │ Challenge to Rock Paper Scissors │
├────────────────────────────┼──────────────────────────────────┤
│ /diceduel [playerID] [bet] │ Challenge to Dice Duel │
├────────────────────────────┼──────────────────────────────────┤
│ /coinflip [playerID] [bet] │ Challenge to Coinflip │
├────────────────────────────┼──────────────────────────────────┤
│ /duel [playerID] [bet] │ Challenge to Gun Duel │
├────────────────────────────┼──────────────────────────────────┤
│ /boxing [playerID] [bet] │ Challenge to Fist Fight │
├────────────────────────────┼──────────────────────────────────┤
│ /bet │ Open spectator betting menu │
└────────────────────────────┴──────────────────────────────────┘
---
What's Open / Editable (Escrow)
┌──────────────────────────────┬──────────┐
│ File │ Status │
├──────────────────────────────┼──────────┤
│ shared/config.lua │ Open │
├──────────────────────────────┼──────────┤
│ locales/*.lua │ Open │
├──────────────────────────────┼──────────┤
│ html/* (UI, CSS, JS, images) │ Open │
├──────────────────────────────┼──────────┤
│ client/client.lua │ Escrowed │
├──────────────────────────────┼──────────┤
│ server/server.lua │ Escrowed │
└──────────────────────────────┴──────────┘
---
Installation
1. Ensure rsg-core and ox_lib are installed
2. Drop pure-pvpgames into your resources folder
3. Add ensure pure-pvpgames to your server.cfg
4. Configure shared/config.lua to your liking
5. Restart your server
---
Version
1.0.0 — Lua 5.4 | FiveM Cerulean | RedM