# Installation

### Step 1

Run the **qb.sql** file located in the resource folder in your database!\
Or execute the SQL:&#x20;

```sql
CREATE TABLE `lvs_multichar` (
  `id` int(11) NOT NULL,
  `license` varchar(90) DEFAULT NULL,
  `uses` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

CREATE TABLE `lvs_multichar_codes` (
  `id` int(11) NOT NULL,
  `code` varchar(50) DEFAULT NULL,
  `used` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

ALTER TABLE `lvs_multichar`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `identifier` (`license`);

ALTER TABLE `lvs_multichar_codes`
  ADD PRIMARY KEY (`id`) USING BTREE;


ALTER TABLE `lvs_multichar`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

ALTER TABLE `lvs_multichar_codes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
```

***

### Step 2

Drag And Drop, put `lvs_multichar` in `resources` folder

***

### Step 3

&#x20;Remove `qb-multicharacter` from **\[qb]** folder

***

### Step 4

Install the dependencies if they are not installed.

<table><thead><tr><th width="209"></th><th></th></tr></thead><tbody><tr><td>oxmysql </td><td><a href="https://github.com/overextended/oxmysql">https://github.com/overextended/oxmysql</a></td></tr><tr><td>ox_lib</td><td><a href="https://github.com/overextended/ox_lib">https://github.com/overextended/ox_lib</a></td></tr></tbody></table>

***

### Step 5

Now configure and translate your resource.

<details>

<summary>Config files</summary>

`/lvs_mutichar/config/config.lua`\
`/lvs_mutichar/config/cutscenes.lua`\
`/lvs_mutichar/config/translations.lua`\
`/lvs_mutichar/config/clothing.lua`

</details>

***

### Step 6

Start the script in **server.cfg** , `ensure lvs_multichar.`
