> 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/gold-panning/installation.md).

# Installation

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

Extract the zip you downloaded from [<mark style="color:$success;">cfx.re portal</mark>](https://portal.cfx.re/assets/granted-assets) and place the <mark style="color:$success;">stg-goldpanning</mark> and <mark style="color:$success;">stg-goldpanning-prop</mark> folder inside the <mark style="color:$success;">\[STG]</mark> folder in your resources directory.

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

:information\_source: i**t works with** <mark style="color:$success;">all inventories</mark>**, I’ve just included a few examples.**

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

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

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('gold_nugget', 'Gold Nugget', 0, 0, 1);
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('gold_pan', 'Gold Pan', 1, 0, 1);
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('purify_table', 'Purify Table', 1, 0, 1);
```

{% endtab %}

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

```lua
purify_table                      = { name = 'purify_table', label = 'Purify Table', weight = 0, type = 'item', image = 'purify_table.png', unique = false, useable = true, shouldClose = false, description = '' },
gold_nugget                      = { name = 'gold_nugget', label = 'Gold Nugget', weight = 0, type = 'item', image = 'gold_nugget.png', unique = false, useable = false, shouldClose = false, description = '' },
gold_pan                      = { name = 'gold_pan', label = 'Gold Pan', weight = 0, type = 'item', image = 'gold_pan.png', unique = false, useable = false, shouldClose = true, description = '' },
```

{% endtab %}

{% tab title="ox\_inventory" %}

```lua
['gold_nugget'] = {
    label = 'Gold Nugget',
    weight = 0,
},

['gold_pan'] = {
    label = 'Gold Pan',
    weight = 0,
},

['purify_table'] = {
    label = 'Purify Table',
    weight = 0,
},
```

{% endtab %}
{% endtabs %}

## Step 3: <mark style="color:blue;">Start Script</mark>&#x20;

Start <mark style="color:$success;">\[STG]</mark> in server.cfg.

For the script to work properly, it would be better to place this at the very bottom of the scripts that are started.

```
ensure [STG]
```
