> 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/card-game/installation.md).

# Installation

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

Extract the zip you downloaded from keymaster and drop the <mark style="color:blue;">stg\_cardGame</mark> folder in the <mark style="color:blue;">resources</mark> folder.

## Step 2: <mark style="color:yellow;">Install items</mark>

{% tabs %}
{% tab title="ESX" %}

```sql
INSERT INTO `items` (`name`, `label`) VALUES
('uno', 'Uno');
```

{% endtab %}

{% tab title="QB" %}
qb-core/shared/items.lua

```lua
['uno'] 					 = {['name'] = 'uno', 			  	  	  	['label'] = 'Uno', 					['weight'] = 100, 		['type'] = 'item', 		['image'] = 'uno.png', 				['unique'] = false, 	['useable'] = true, 	['shouldClose'] = false,   ['combinable'] = nil,   ['description'] = 'Wallet'},
```

{% endtab %}
{% endtabs %}

## Step 3: <mark style="color:yellow;">Set bot token</mark>

The script needs a bot token to access players' discord profile pictures, you need to place it in the <mark style="color:blue;">botToken</mark> section in <mark style="color:blue;">stg\_cardGame/settings.lua</mark>. if you don't know how to get a discord bot token, you can click [here](/documentation/guide/create-discord-bot-token.md).

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

## Step 4: <mark style="color:yellow;">Start script</mark>

Start <mark style="color:blue;">stg\_cardGame</mark> in server.cfg.

```
ensure stg_cardGame
```
