> For the complete documentation index, see [llms.txt](https://stg-store.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stg-store.gitbook.io/documentation/scripts/treasure-map/installation.md).

# Installation

## Step 1: <mark style="color:blue;">Move resource</mark>

Extract the zip you downloaded from keymaster and drop the <mark style="color:$success;">stg-treasuremap</mark> folder in the <mark style="color:$success;">resources</mark> folder.

## Step 2: <mark style="color:blue;">Add Items</mark>

:information\_source: <mark style="color:$info;">**Items like**</mark>**&#x20;**<mark style="color:$success;">**goldbar**</mark><mark style="color:$info;">**,**</mark>**&#x20;**<mark style="color:$success;">**diamond\_ring**</mark><mark style="color:$info;">**,**</mark>**&#x20;**<mark style="color:$success;">**diamond**</mark><mark style="color:$info;">**, and**</mark>**&#x20;**<mark style="color:$success;">**goldchain**</mark>**&#x20;**<mark style="color:$info;">**are mostly found in**</mark>**&#x20;**<mark style="color:$success;">**QB servers**</mark><mark style="color:$info;">**, so first check whether they already exist.**</mark>

:information\_source: <mark style="color:$info;">**It works with**</mark>**&#x20;**<mark style="color:$primary;">**all inventories**</mark><mark style="color:$info;">**, I’ve just included a few examples**</mark>

:frame\_photo: **You can find the item images inside the** <mark style="color:$success;">item-images</mark> **folder located in the&#x20;**<mark style="color:$success;">**\[SETUP]**</mark>**&#x20;directory.**

{% tabs %}
{% tab title="es\_extended" %}

```sql
INSERT INTO items (name, label)
VALUES 
    ('treasure_map_small', 'Small Treasure Map'),
    ('treasure_map_medium', 'Medium Treasure Map'),
    ('treasure_map_large', 'Large Treasure Map'),
    ('shovel', 'Shovel'),
    ('goldbar', 'Gold Bar'),
    ('diamond_ring', 'Diamond Ring'),
    ('diamond', 'Diamond'),
    ('goldchain', 'Gold Chain');
```

{% endtab %}

{% tab title="qb-core" %}

```lua
treasure_map_small            = { name = 'treasure_map_small', label = 'Small Treasure Map', weight = 500, type = 'item', image = 'treasure_map_small.png', unique = true, useable = true, shouldClose = true, description = 'A small treasure map that leads to minor rewards' },
treasure_map_medium           = { name = 'treasure_map_medium', label = 'Medium Treasure Map', weight = 700, type = 'item', image = 'treasure_map_medium.png', unique = true, useable = true, shouldClose = true, description = 'A medium treasure map that reveals better rewards' },
treasure_map_large            = { name = 'treasure_map_large', label = 'Large Treasure Map', weight = 1000, type = 'item', image = 'treasure_map_large.png', unique = true, useable = true, shouldClose = true, description = 'A large treasure map that uncovers great rewards' },
shovel                        = { name = 'shovel', label = 'Shovel', weight = 2000, type = 'item', image = 'shovel.png', unique = false, useable = true, shouldClose = true, description = 'A sturdy shovel, essential for digging up treasures' },

goldbar                       = { name = 'goldbar', label = 'Gold Bar', weight = 1500, type = 'item', image = 'goldbar.png', unique = false, useable = false, shouldClose = true, description = 'A shiny gold bar, valuable for trade' },
diamond_ring                  = { name = 'diamond_ring', label = 'Diamond Ring', weight = 300, type = 'item', image = 'diamond_ring.png', unique = false, useable = false, shouldClose = true, description = 'A luxurious diamond ring, perfect for selling' },
diamond                       = { name = 'diamond', label = 'Diamond', weight = 200, type = 'item', image = 'diamond.png', unique = false, useable = false, shouldClose = true, description = 'A precious diamond, highly valuable' },
goldchain                     = { name = 'goldchain', label = 'Gold Chain', weight = 400, type = 'item', image = 'goldchain.png', unique = false, useable = false, shouldClose = true, description = 'A fancy gold chain, good for resale' },
```

{% endtab %}

{% tab title="ox-inventory" %}

```lua
['treasure_map_small'] = {
	label = 'Treasure Map (Small)',
	weight = 1000,
	stack = false,
},

['treasure_map_medium'] = {
	label = 'Treasure Map (Medium)',
	weight = 1000,
	stack = false,
},

['treasure_map_large'] = {
	label = 'Treasure Map (Large)',
	weight = 1000,
	stack = false,
},

['shovel'] = {
	label = 'Shovel',
	weight = 1000,
	stack = false,
},

['goldbar'] = {
	label = 'Gold Bar',
	weight = 1500,
	stack = true,
},

['diamond_ring'] = {
	label = 'Diamond Ring',
	weight = 300,
	stack = true,
},

['diamond'] = {
	label = 'Diamond',
	weight = 200,
	stack = true,
},

['goldchain'] = {
	label = 'Gold Chain',
	weight = 400,
	stack = true,
},

```

{% endtab %}
{% endtabs %}

## Step 3: <mark style="color:blue;">Start script</mark>

Start <mark style="color:$success;">stg-treasuremap</mark> in server.cfg.

```lua
ensure stg-treasuremap
```
