> For the complete documentation index, see [llms.txt](https://docs.0resmon.org/0resmon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0resmon.org/0resmon/0resmon-1/wais-resoucres/wais-multicharacterv2/installation-qbx/qbx-integration.md).

# Integration Qbx\_core

{% hint style="danger" %}
Incomplete or incorrect installation will result in a multicharacter error and will not save your new characters.
{% endhint %}

{% hint style="warning" %} <mark style="background-color:orange;">**qbx\_core/config/client.lua**</mark> Go to this file and search for **`useExternalCharacters`** and change the variable to **`true`**
{% endhint %}

{% hint style="info" %}
Visit this folder for the changes we will make. *<mark style="background-color:green;">**qbx\_core/server/player.lua**</mark>*
{% endhint %}

***

* Find the specified function <mark style="background-color:orange;">**function CreatePlayer(playerData, Offline)**</mark>
* Go to the last line of the function and you should see <mark style="background-color:orange;">**return self**</mark>
* This is the code you need to find and see **before changing** the code ⤵️

  <figure><img src="/files/9PzJ9K7wyn58mMbLBTRw" alt=""><figcaption><p>⚠️ Before the change ⚠️</p></figcaption></figure>

***

* You need to put this event on top of the **return self** code

```lua
TriggerEvent('wais:sendNewCharacterData', self.PlayerData.source, playerData.cid, self.PlayerData.citizenid)
```

{% hint style="info" %}
After pasting the code above, it should look like below.
{% endhint %}

<figure><img src="/files/BwqRrUQb1UQzlb3c5Gcr" alt=""><figcaption><p>✅ View after the Event is added ✅</p></figcaption></figure>
