qb-multicharacter support

  1. Navigate to qb-multicharacter/client/main.lua (around the line 100) and add the following code after SetNuiFocus(false, false):

skyCam(false)
  1. Then, on qb-multicharacter/server/main.lua, search for RegisterNetEvent('qb-multicharacter:server:loadUserData', function(cData) and replace:

if GetResourceState('qb-apartments') == 'started' then
    TriggerClientEvent('apartments:client:setupSpawnUI', src, cData)
else

With:

if GetResourceState('okokSpawnSelector') == 'started' then
    local coords = json.decode(cData.position)
    TriggerClientEvent('okokSpawnSelector:spawnMenu', src, false, coords)
else
  1. Now, in the same file, search for RegisterNetEvent('qb-multicharacter:server:createCharacter', function(data) and replace:

TriggerClientEvent('apartments:client:setupSpawnUI', src, newData)

With:

TriggerClientEvent('okokSpawnSelector:spawnMenu', src, true)

Last updated