STG ScriptsDocumentation
Treasure Map

Treasure Map

Buy a small, medium or large treasure map, follow the marked spots across the map, dig with a shovel and sell gold and diamonds for cash.

STG Treasure Map adds a treasure hunt to your server. Players buy a map from the treasure dealer, open it to see where the treasure is buried, grab a shovel and dig it up. Whatever they find can be sold for cash at the buyer.

Features

Three map sizes

Small, medium and large maps reveal one, two or three treasure spots. Each size has its own price.

Marked spots

Using the map item opens a full world map with the player's own treasure spots pinned on it.

Dig it up

Use the shovel near a marked spot to dig, and watch the chest rise out of the ground. Digging in the wrong place tells you nothing is there.

Weighted rewards

Each chest holds one reward picked by chance, with a random amount. Add your own items and set the odds.

Sell your finds

A second NPC buys every reward the player carries in one go and pays in cash.

Personal maps

Spots belong to the character who bought the map and stay saved through restarts until they are dug up.

At a glance

Maps3 sizes with 1, 2 or 3 spots
Treasure spots6 included, add your own in the config
RewardsGold bar, diamond ring, diamond and gold chain
Items8, ready to paste for ox_inventory, qb-core and ESX
FrameworksESX, QBCore, QBOX
Languages14 included

Next steps

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page