🎲 Street Gamble
An atmospheric and interactive dice game script for the dark alleys and busy saloons of RedM. Challenge your luck or take money from other players!
✨ Features
- Interactive Dicing: Authentic dice animations used directly in the game world.
- Betting System: Play for money or items (configurable).
- Multiplayer: Other players see your throws in real-time.
- Cheating Mechanics (Optional): Try to manipulate the result (at your own risk!).
- NPC Opponents: No player around? Play against the AI.
📥 Installation
- Copy
mulderdev_street_gamblingto yourresourcesfolder. - Ensure
vorp_coreandvorp_inventoryare started. - Add
ensure mulderdev_street_gamblingto yourserver.cfg. - Restart server.
🎮 How to Play
Start a Game
You need a Dice Set (dice_set) or Individual Dice in your inventory.
- Use the dice from your inventory.
- Your character kneels down or takes a suitable pose.
- A UI window opens for game settings.
The Interface
In the game menu you have the following options:
- Choose Bet: Determine how much money ($) or which items are bet.
- Game Mode:
- Higher Roll Wins (Classic)
- 7 Wins (Craps-like)
- Blackjack with Dice (Try to reach 21)
- Invite Players: Send an invitation to the nearest player.
The Throw
Press [Space] or Click "Roll".
- An animation plays.
- The dice physically roll across the ground.
- The result is displayed above the dice and in the chat.
Fair Play
The result is calculated server-side to prevent client-side cheating (unless it is a feature!).
⚙️ Configuration
The settings in config.lua allow you to adapt the game to your server economy.
Main Settings
Config = {}
Config.DevMode = false
Config.Language = 'en' -- 'de' or 'en'
-- Distance at which other players can see the game
Config.RenderDistance = 10.0
Money & Betting
Config.Betting = {
Currency = "money", -- 'money', 'gold', 'rol', etc.
MinBet = 0.50, -- Minimum bet
MaxBet = 100.00, -- Maximum bet
VerifyBalance = true -- Check if players have enough money
}
Dice Settings
Config.Dice = {
Count = 2, -- Default number of dice (1-5)
Physics = true, -- Should dice roll physically?
CheatChance = 10 -- 10% chance to get caught cheating
}
🔧 Required Items
| Item Name | Label | Description |
|---|---|---|
dice_set | Dice Bag | A bag with multiple dice. |
loaded_dice | Loaded Dice | (Optional) Increases winning chance, risk of getting caught. |
📋 Dependencies
- VORP Core
- VORP Inventory
- oxmysql