# 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.`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fivem.lvsoft.com.ar/qb-esx/lvs-multichar/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
