For the complete documentation index, see llms.txt. This page is also available as Markdown.

qb-multicharacter

Integration guide for qb-multicharacter.


Steps

Open qb-multicharacter/client.lua and find the line starting with RegisterNUICallback('cDataPed',.

Find DeleteEntity(charPed) ~3 lines below it. Insert the following code after that line:

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

Last updated