# 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="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2FY3wNMAie4Y5HP2i8sscc%2Fresim_2024-11-07_173342485.png?alt=media&#x26;token=2b29449b-01b0-4b87-a678-3d4753f663f7" 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="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2F7O64y2syENZQqjJ8XgFC%2Fresim_2024-11-07_173943955.png?alt=media&#x26;token=33762092-b8f7-406e-b052-2a15fad7f82a" alt=""><figcaption><p>✅ View after the Event is added ✅</p></figcaption></figure>
