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


---

# 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://docs.0resmon.org/0resmon/0resmon-1/wais-resoucres/wais-multicharacterv2/installation-qbx/qbx-integration.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.
