> 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/ice-cream/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-icecream</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_ice_cream_rocket', 'Rocket Pop'),
    ('stg_ice_cream_taco', 'Cocoa Taco'),
    ('stg_ice_cream_berry', 'Berry Crunch Bar'),
    ('stg_ice_cream_orange', 'Orange Cream Bar'),
    ('stg_ice_cream_fudge', 'Fudge Pop'),
    ('stg_ice_cream_sandwich', 'Cream Sandwich'),
    ('stg_ice_cream_cone', 'Sundae Cone');
```

{% endtab %}

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

```lua
stg_ice_cream_rocket                = { name = 'stg_ice_cream_rocket', label = 'Rocket Pop', weight = 100, type = 'item', image = 'stg_ice_cream_rocket.png', unique = false, useable = true, shouldClose = true, description = 'Red, white and blue. A summer classic.' },
stg_ice_cream_taco                  = { name = 'stg_ice_cream_taco', label = 'Cocoa Taco', weight = 100, type = 'item', image = 'stg_ice_cream_taco.png', unique = false, useable = true, shouldClose = true, description = 'Vanilla ice cream in a chocolate shell.' },
stg_ice_cream_berry                 = { name = 'stg_ice_cream_berry', label = 'Berry Crunch Bar', weight = 100, type = 'item', image = 'stg_ice_cream_berry.png', unique = false, useable = true, shouldClose = true, description = 'Berry ice cream rolled in a crunchy coating.' },
stg_ice_cream_orange                = { name = 'stg_ice_cream_orange', label = 'Orange Cream Bar', weight = 100, type = 'item', image = 'stg_ice_cream_orange.png', unique = false, useable = true, shouldClose = true, description = 'Orange sherbet wrapped around vanilla cream.' },
stg_ice_cream_fudge                 = { name = 'stg_ice_cream_fudge', label = 'Fudge Pop', weight = 100, type = 'item', image = 'stg_ice_cream_fudge.png', unique = false, useable = true, shouldClose = true, description = 'Rich chocolate fudge on a stick.' },
stg_ice_cream_sandwich              = { name = 'stg_ice_cream_sandwich', label = 'Cream Sandwich', weight = 100, type = 'item', image = 'stg_ice_cream_sandwich.png', unique = false, useable = true, shouldClose = true, description = 'Vanilla ice cream between two chocolate wafers.' },
stg_ice_cream_cone                  = { name = 'stg_ice_cream_cone', label = 'Sundae Cone', weight = 100, type = 'item', image = 'stg_ice_cream_cone.png', unique = false, useable = true, shouldClose = true, description = 'Waffle cone topped with chocolate and nuts.' },
```

{% endtab %}

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

```lua
["stg_ice_cream_rocket"] = {
    label = "Rocket Pop",
    weight = 100,
    stack = true,
    close = true,
    description = "Red, white and blue. A summer classic.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_taco"] = {
    label = "Cocoa Taco",
    weight = 100,
    stack = true,
    close = true,
    description = "Vanilla ice cream in a chocolate shell.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_berry"] = {
    label = "Berry Crunch Bar",
    weight = 100,
    stack = true,
    close = true,
    description = "Berry ice cream rolled in a crunchy coating.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_orange"] = {
    label = "Orange Cream Bar",
    weight = 100,
    stack = true,
    close = true,
    description = "Orange sherbet wrapped around vanilla cream.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_fudge"] = {
    label = "Fudge Pop",
    weight = 100,
    stack = true,
    close = true,
    description = "Rich chocolate fudge on a stick.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_sandwich"] = {
    label = "Cream Sandwich",
    weight = 100,
    stack = true,
    close = true,
    description = "Vanilla ice cream between two chocolate wafers.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},

["stg_ice_cream_cone"] = {
    label = "Sundae Cone",
    weight = 100,
    stack = true,
    close = true,
    description = "Waffle cone topped with chocolate and nuts.",
    client = {
        export = 'stg-icecream.eatIceCream'
    }
},
```

{% 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_lib
ensure [STG]
```
