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 📦
- Drop
Silly_Treasureinto your server resources folder. - Ensure it in your
server.cfg:-
ensure Silly_Treasure
-
- Make sure the
shovelitem exists in your inventory database. - Configure zones, rewards, and cooldown in
config.lua.
How To Use 🎮
- Have a
shovelin your inventory. - Go to one of the dig zones (map blips).
- Use the shovel item.
- Idle → dig animation plays, then a finish animation.
- Receive random loot from the rewards table.
- 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.

