Discord Silly Scripts

Silly Treassure

Silly Treassure

€12.60

Add to Basket

Silly_Treasure 🗺️⛏️

A treasure digging system for RedM. Head to one of the marked dig sites, equip your shovel, and dig for buried treasure. Rewards are drawn from a configurable loot table — gold nuggets, gold bars, teeth and more. Your shovel has a chance to break on use.

Preview: Video


Key Features ⭐

  • 🗺️ Configurable dig zones each with a custom map blip and name
  • ⛏️ Animated digging: idle look, work swing, and finish animations
  • 🎲 Chance-based rewards from a fully configurable loot table
  • 🔨 Shovel break chance — adds risk to each dig
  • ⏱️ Per-zone cooldown to prevent farming
  • 🔌 VORP or RSGCore (auto-detected at runtime)

Dependencies 🔧

  • VORP or RSGCore (auto-detected at runtime)

Installation 📦

  1. Drop Silly_Treasure into your server resources folder.
  2. Ensure it in your server.cfg:
    • ensure Silly_Treasure
  3. Make sure the shovel item exists in your inventory database.
  4. Configure zones, rewards, and cooldown in config.lua.

How To Use 🎮

  1. Have a shovel in your inventory.
  2. Go to one of the dig zones (map blips).
  3. Use the shovel item.
  4. Idle → dig animation plays, then a finish animation.
  5. Receive random loot from the rewards table.
  6. Risk: 25% chance your shovel breaks.

Configuration ⚙️ (config.lua)

Item & Break Chance

Config.ItemName   = "shovel"
Config.BreakChance = 25     -- % chance shovel breaks on use

Config.Texts = {
    ShovelBroke = "Deine Schaufel ist zerbrochen!",
    NoItem      = "Du besitzt keine Schaufel."
}

Cooldown

Config.CooldownMinutes = 0.2   -- minutes between digs per zone

Zones

Each zone has coordinates, a radius, and a named blip:

Config.Zones = {
    {
        Coords = vector3(-6812.82, -3359.83, -16.28),
        Radius = 5.0,
        Blip = {
            Sprite = 587827268,
            Scale  = 0.8,
            Name   = "San Pedros Klunker"
        }
    },
    -- ... more zones
}

Rewards

Config.Rewards = {
    { item = "gold_nugget", chance = 30, min = 5,  max = 15 },
    { item = "goldbar",     chance = 15, min = 2,  max = 3  },
    { item = "Goldzahn",    chance = 80, min = 1,  max = 5  }
}

Animations

Idle look, dig swing and finish are all configurable in Config.Animations with bone attachment, position, rotation and duration.

Back to category