# How to set it up

{% hint style="info" %}
Below are some important types and installation contents.
{% endhint %}

* Do not change the name of the script
* Put the script in the resources folder, do not use any folderisation.
* Prefer to start manually in server.cfg as follows.
* <mark style="background-color:orange;">wais-compatibility</mark> script is required. Named <mark style="background-color:orange;">wais-compatibility-hudv5</mark> in [Keymaster](https://keymaster.fivem.net)
* Take care to start the script manually after your core.

{% hint style="danger" %}
**This is not the layout and appearance that should be in Server.cfg**
{% endhint %}

```
ensure [yourcore]
ensure wais-compatibility
ensure wais-multicharacterv2
```

***

{% hint style="info" %}
You need to read the SQL Files. If you cannot access the files, the queries are below.
{% endhint %}

SQL Table codes where we will keep Multicharacter data.

```sql
CREATE TABLE IF NOT EXISTS `wais_multicharacterv2` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `license` longtext DEFAULT NULL,
  `chars` longtext DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=460 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci ROW_FORMAT=DYNAMIC;
```

***

SQL table codes to save Tebex purchases.

```sql
CREATE TABLE IF NOT EXISTS `wais_multicharacterv2_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transactionid` mediumtext DEFAULT NULL,
  `buyed_package` mediumtext DEFAULT NULL,
  `buyer_mail` mediumtext DEFAULT NULL,
  `claimed_by` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
```
