# Kicked For Explotation

{% hint style="warning" %}
Firstly, make sure that you have selected your **QBCore** type correctly. <mark style="background-color:green;">**New**</mark> or <mark style="background-color:orange;">**Old**</mark>.
{% endhint %}

To resolve this error, firstly review your player.lua file again. Because you may have put the **event in the wrong place** or you may **not have put the data returned with return in the right place** <mark style="background-color:yellow;">(High Probability!)</mark>

**=>** [**Setup Player Lua**](https://docs.0resmon.org/0resmon/wais-resoucres/wais-multicharacterv2/installation-qbcore)

***

## 👿I've corrected my mistake but I'm still getting kicked

The player will be kicked from the server when attempting to delete all characters created before realising this deficiency.

***

### **If your server is a development, that is, if it is still in the development process, follow this way:**

* Clear all rows in <mark style="background-color:green;">**players**</mark> and <mark style="background-color:green;">wais\_multicharacterv2</mark> tables. Then restart the server.

***

### **If your server is used for an active role that is open to players, follow this way:**

{% hint style="info" %}
The result of this error will be the following. Actually, for each player who presses the create character button, 2 characters with different citizenids will be created. The citizenid of the last created character will be saved in the multicharacterv2 table.
{% endhint %}

* Go to *<mark style="background-color:yellow;">**qb-core/server/player.lua**</mark>*
* Search for this function and make sure you find <mark style="background-color:yellow;">**QBCore.Player.DeleteCharacter(source, citizenid)**</mark>
* Then delete the red hatched areas below or make a comment line. To make a comment line, put -- at the beginning of the line on the left hand side.

<figure><img src="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2FcMG0ykWTUPObrvvrNCJ2%2FAds%C4%B1xz.png?alt=media&#x26;token=7f7269b0-aa7c-4a42-b949-972810f6bb7a" alt=""><figcaption><p><strong>Red Hatcheds</strong></p></figcaption></figure>

***
