> 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/smart-watch/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-smartwatch</mark> folder in the <mark style="color:$success;">resources</mark> folder.

## Step 2: <mark style="color:blue;">Install SQL files</mark>

Insert the <mark style="color:$success;">\[SETUP]</mark>/\[SQL]/esx.sql or setup-files/\[SQL]/qb.sql file to your database.

## Step 3: <mark style="color:blue;">Add Images</mark>

Don't forget to add the images in <mark style="color:$success;">\[SETUP]/images-for-inventory</mark> to your inventory!

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

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

```sql
INSERT INTO items (name, label)
VALUES 
    ('watch_red', 'Smart Watch'),
    ('watch_white', 'Smart Watch'),
    ('watch_black', 'Smart Watch');
```

{% endtab %}

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

```lua
watch_red                        = { name = 'watch_red', label = 'Smart Watch', weight = 2000, type = 'item', image = 'watch_red.png', unique = true, useable = true, shouldClose = true, description = 'A sleek red smart watch' },
watch_white                      = { name = 'watch_white', label = 'Smart Watch', weight = 2000, type = 'item', image = 'watch_white.png', unique = true, useable = true, shouldClose = true, description = 'A sleek white smart watch' },
watch_black                      = { name = 'watch_black', label = 'Smart Watch', weight = 2000, type = 'item', image = 'watch_black.png', unique = true, useable = true, shouldClose = true, description = 'A sleek black smart watch' },
```

{% endtab %}

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

```lua
["watch_black"] = {
    label = "Smart Watch",
    weight = 200,
    stack = false,
    close = true,
    client = {
        event = "stg-smartwatch:openWatch",
        color = "black"
    }
},

["watch_white"] = {
    label = "Smart Watch",
    weight = 200,
    stack = false,
    close = true,
    client = {
        event = "stg-smartwatch:openWatch",
        color = "white"
    }
},

["watch_red"] = {
    label = "Smart Watch",
    weight = 200,
    stack = false,
    close = true,
    client = {
        event = "stg-smartwatch:openWatch",
        color = "red"
    }
},
```

{% endtab %}
{% endtabs %}

## Step 5: <mark style="color:blue;">Set VOIP System</mark>

<div align="left"><figure><img src="/files/bPQaN3jRadKzm8E0V1Vc" alt=""><figcaption></figcaption></figure></div>

if the voip script you are using is not here please let us know on discord and we will quickly add it for you!

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

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

```
ensure stg-smartwatch
```
