---
description: Configuration guide of Treasure Map System.
---

# Configuration

The **STG Treasure Hunt** Script offers players an immersive treasure-hunting experience, complete with interactive gameplay mechanics, customizable rewards, and detailed visuals. Perfect for roleplay servers, this script brings an exciting new activity that will keep your community engaged and entertained.

***

#### <mark style="color:green;">**General Settings**</mark>

| **Parameter**       | **Description**                                            | **Example Value**            |
| ------------------- | ---------------------------------------------------------- | ---------------------------- |
| `Config.Framework`  | Determines which framework to use: `auto`, `esx`, or `qb`. | `"auto"`                     |
| `Config.Language`   | Sets the language for in-game messages.                    | `"en"`                       |
| `Config.ChestModel` | The model used for the treasure chest object.              | `"xm_prop_x17_chest_closed"` |
| `Config.Shovel`     | Cost of the shovel in-game.                                | `5000`                       |

***

#### <mark style="color:green;">**Treasure Settings**</mark>

| **Parameter**           | **Description**                              | **Example Value**                    |
| ----------------------- | -------------------------------------------- | ------------------------------------ |
| `Config.digTime`        | Time (in ms) taken to dig and find treasure. | `{ found = 8000, not_found = 2000 }` |
| `Config.TreasurePoints` | Coordinates of treasure spawn points.        | `vec3(768.6719, 415.0298, 141.7109)` |

***

#### <mark style="color:green;">**Items**</mark>

| **Parameter**         | **Description**                      | **Example Value**      |
| --------------------- | ------------------------------------ | ---------------------- |
| `Config.Items.small`  | Name of the small treasure map item. | `"treasure_map_small"` |
| `Config.Items.shovel` | Name of the shovel item.             | `"shovel"`             |

***

#### <mark style="color:green;">**Maps**</mark>

| **Map Type** | **Number of Treasures** | **Price** |
| ------------ | ----------------------- | --------- |
| Small Map    | 1                       | $2500     |
| Medium Map   | 2                       | $5000     |
| Big Map      | 3                       | $7500     |

***

#### <mark style="color:green;">**Treasure Rewards**</mark>

| **Item Name** | **Chance (%)** | **Price** | **Amount Range** |
| ------------- | -------------- | --------- | ---------------- |
| Gold Bar      | 25%            | $500      | 1–2              |
| Diamond Ring  | 25%            | $1500     | 1–2              |
| Diamond       | 25%            | $1000     | 1–2              |
| Gold Chain    | 25%            | $300      | 1–2              |

***
