---
description: Installation guide of Wallet System
---

# 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\_wallet</mark> folder in the <mark style="color:blue;">resources</mark> folder.



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

Insert the <mark style="color:blue;">stg\_wallet/setup-files/data.sql</mark> file to your database.



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

{% tabs %}
{% tab title="ESX" %}
```sql
INSERT INTO `items` (`name`, `label`) VALUES
('wallet', 'Wallet');
```
{% endtab %}

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

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



## Step 5: <mark style="color:yellow;">Setup webhook</mark>

We need a discord webhook to take photos for the game. for the script to work properly you need to define your webhook in <mark style="color:blue;">STG.webhook</mark> in <mark style="color:blue;">stg\_wallet/config.lua</mark>. if you don't know how to get a webhook you can learn it [here](../../guide/create-discord-webhook).

<div align="left"><figure><img src="https://937206614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1RYU1h8BFvfxs3h2NWwH%2Fuploads%2Fhwzm6h0395j50P2Olv1F%2Fimage.png?alt=media&#x26;token=3a8acd6d-80b7-4ade-b288-d028adfb8b70" alt=""><figcaption></figcaption></figure></div>



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

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

```
ensure stg_wallet
```
