Skip to main content

🎲 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

  1. Copy mulderdev_street_gambling to your resources folder.
  2. Ensure vorp_core and vorp_inventory are started.
  3. Add ensure mulderdev_street_gambling to your server.cfg.
  4. Restart server.

🎮 How to Play

Start a Game

You need a Dice Set (dice_set) or Individual Dice in your inventory.

  1. Use the dice from your inventory.
  2. Your character kneels down or takes a suitable pose.
  3. 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 NameLabelDescription
dice_setDice BagA bag with multiple dice.
loaded_diceLoaded Dice(Optional) Increases winning chance, risk of getting caught.

📋 Dependencies

  • VORP Core
  • VORP Inventory
  • oxmysql