# qb-multicharacter

Open file `qb-multicharacter/client.lua` and find line that starts with `RegisterNUICallback('cDataPed',`

Next, find line `DeleteEntity(charPed)` , should be \~3 lines underneath the RegisterNUICallback.

Insert the following code after `DeleteEntity(charPed)`

```lua
if cData and cData.citizenid then
    local eventExists = false
    TriggerEvent('rcore_clothing:qb:multichar', {citizenid = cData.citizenid, coords = Config.PedCoords}, function()
        eventExists = true
    end, function(ped)
        charPed = ped
    end)

    if eventExists then
        return
    end
end
```

Now it should look like the following image:

![](https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-c2d771b80ddfa48fe5c51f097ed050d3942bf7b7%2Fqbmulti.png?alt=media)
