> 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/tower-blocks/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-towerblocks</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_towerblocks', 'Tower Blocks');
```

{% endtab %}

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

```lua
stg_towerblocks                     = { name = 'stg_towerblocks', label = 'Tower Blocks', weight = 0, type = 'item', image = 'stg_towerblocks.png', unique = false, useable = true, shouldClose = true, description = 'Tower Blocks Set' },
```

{% endtab %}

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

```lua
["stg_towerblocks"] = {
    label = "Tower Blocks",
    weight = 0,
    stack = false,
    close = true,
    client = {
        event = 'stg-towerblocks:client:startPlacement'
    }
},
```

{% 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;">Add Prop to Anticheat Whitelist</mark>

Tower Blocks spawns a large number of props while building the tower, so some anticheats will flag or delete them as "too many entities / prop spam."

To prevent this, add the following prop model to your anticheat's prop / object whitelist:

`stg_towerblocks`

Once whitelisted, your anticheat will stop removing the tower props and the script will work correctly.

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