# Installation

## 1. Log in to your keymaster account

Connect via this site: <https://keymaster.fivem.net/> with your CFX account to which your purchase was made on the store <https://www.var-fivem.com/>

## 2. Download resource

<figure><img src="https://4276650587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVpsT0CEZ6FFjUJ4WIhHY%2Fuploads%2F9VLJQrER0vR95r1E5YVB%2Fimage.png?alt=media&#x26;token=a96d3707-655a-41ce-901a-016a4e1feb5d" alt=""><figcaption><p>Go to the Granted Assets category and download the most recent version of the Multi Character </p></figcaption></figure>

## 3. Edit the scripts to align with the standard core resources

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

## @esx\_multicharacter&#x20;

1. Delete `esx_multicharacter` folder.
2. Open **@es\_extended/config.lua** and set `GetResourceState("Var-MultiChar") ~= "missing"` to `Config.Multichar`
3. Add SQL

```sql
CREATE TABLE `multicharacter_slots` (
	`identifier` VARCHAR(60) NOT NULL,
	`slots` INT(11) NOT NULL,
	PRIMARY KEY (`identifier`) USING BTREE,
	INDEX `slots` (`slots`) USING BTREE
) ENGINE=InnoDB;

ALTER TABLE `users` ADD COLUMN
	`disabled` TINYINT(1) NULL DEFAULT '0';
```

{% endtab %}

{% tab title="QB-Core" %}

## @qb-multicharacter

1. Delete `qb-multicharacter` folder.
2. Add SQL

```sql
CREATE TABLE `multichars_slots` (
    `identifier` VARCHAR(60) NOT NULL,
    `slots` INT(11) NOT NULL,
    PRIMARY KEY (`identifier`) USING BTREE,
    INDEX `slots` (`slots`) USING BTREE
) ENGINE=InnoDB;

ALTER TABLE `players` ADD COLUMN `disabled` TINYINT(1) NULL DEFAULT '0';
```

{% endtab %}
{% endtabs %}

## 5. Launch your resource

Once the download is complete, unzip the file and drag it into the resources folder of your server.

{% hint style="warning" %}
If you added the resource while your server was already running, remember to do the refresh command and then ensure the resource.
{% endhint %}

```powershell
refresh
```

```
ensure Var-MultiChar
```
