> 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-v2/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-goldpanningv2</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)
VALUES
    ('stg_goldpan', 'Gold Pan'),
    ('stg_goldtable', 'Panning Table'),
    ('stg_goldnugget', 'Gold Nugget'),
    ('stg_goldnugget_big', 'Big Gold Nugget'),
    ('stg_emerald', 'Emerald');
```

{% endtab %}

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

```lua
stg_goldpan                         = { name = 'stg_goldpan', label = 'Gold Pan', weight = 1000, type = 'item', image = 'stg_goldpan.png', unique = false, useable = true, shouldClose = true, description = 'Basic tool for sifting dirt' },
stg_goldtable                       = { name = 'stg_goldtable', label = 'Panning Table', weight = 5000, type = 'item', image = 'stg_goldtable.png', unique = false, useable = true, shouldClose = true, description = 'Place it to sift on' },
stg_goldnugget                      = { name = 'stg_goldnugget', label = 'Gold Nugget', weight = 100, type = 'item', image = 'stg_goldnugget.png', unique = false, useable = false, shouldClose = true, description = 'Raw river gold' },
stg_goldnugget_big                  = { name = 'stg_goldnugget_big', label = 'Big Gold Nugget', weight = 250, type = 'item', image = 'stg_goldnugget_big.png', unique = false, useable = false, shouldClose = true, description = 'A rare large nugget' },
stg_emerald                         = { name = 'stg_emerald', label = 'Emerald', weight = 50, type = 'item', image = 'stg_emerald.png', unique = false, useable = false, shouldClose = true, description = 'A rare green gem' },
```

{% endtab %}

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

```lua
["stg_goldpan"] = {
    label = "Gold Pan",
    weight = 1000,
    stack = false,
    close = true,
    client = {
        event = 'stg-goldpanningv2:client:usePan'
    }
},

["stg_goldtable"] = {
    label = "Panning Table",
    weight = 5000,
    stack = false,
    close = true,
    client = {
        event = 'stg-goldpanningv2:client:useTable'
    }
},

["stg_goldnugget"] = {
    label = "Gold Nugget",
    weight = 100,
    stack = true,
    close = true,
},

["stg_goldnugget_big"] = {
    label = "Big Gold Nugget",
    weight = 250,
    stack = true,
    close = true,
},

["stg_emerald"] = {
    label = "Emerald",
    weight = 50,
    stack = true,
    close = true,
},
```

{% endtab %}
{% endtabs %}

## Step 3: <mark style="color:blue;">Install stg\_lib</mark>

You can download stg\_lib [here ](https://github.com/stgscripts/stg_lib/releases/latest/download/stg_lib.zip)and read the installation guide [here](/documentation/scripts/lib/installation.md).

## Step 4: <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]
```
