Treasure Hunting Script – QBCore / QBX
Description
Embark on an immersive treasure hunting adventure on your FiveM server! This fully-featured Treasure Hunting Script allows players to use treasure maps, track their treasure hunting progress, and dig up hidden treasures with randomized loot rewards. Integrated with QBCore/QBX, ox_inventory, ox_target, and qb-menu, the script provides an engaging, guided, and interactive experience for players.
Perfect for server owners who want to increase player engagement, add dynamic content, or developers looking for a solid foundation for further customization.
Features
Treasure Map Usage: Players can use
treasure_mapitems to mark a random treasure location on their map.Guided Exploration: Automatically sets waypoints to guide players to treasures for an immersive experience.
Treasure Props: Treasure locations spawn with a visible prop on the ground for realism.
Digging Mechanic: Players must have a shovel to dig at marked locations using a progress bar animation.
Randomized Loot Pool: Configurable loot categories with min/max amounts, drop chances, and max value per dig.
Player Cooldowns & Fail Chance: Prevents spamming, with optional fail chance for added challenge.
Treasure Hunting Leveling: Players track their XP and level, viewable via
qb-menu.Integrated Notifications: Provides clear and informative messages for key actions, digging progress, failures, and loot obtained.
Blip & Radius Indicators: Visual treasure area markers with blip + radius to enhance navigation.
Ox_Target Integration: Treasure locations are interactive via target zones for digging.
Shovel Break Chance: Configurable chance for the shovel to break after digging, adding risk/reward.
Easy Configuration: Fully customizable config file for maps, zones, loot, XP rewards, and more.
Fully Compatible: Works seamlessly with QBCore and QBX frameworks.
Dependencies
ox_inventory
ox_target
qb-menu
Framework: QBCore / QBX