Just updated QB Core and qb-multicharacter -- Now multicharacter doesn't load

So a few of my scripts are now getting a similar error message:

SCRIPT ERROR: @qb-multicharacter/client/main.lua:39: attempt to index a nil value (field ‘Functions’)

Line 39 of mail.lua is: QBCore.Functions.TriggerCallback(“qb-multicharacter:server:GetNumberOfCharacters”,

Snipit below.

local function openCharMenu(bool)
    QBCore.Functions.TriggerCallback("qb-multicharacter:server:GetNumberOfCharacters", function(result)
        SetNuiFocus(bool, bool)
        SendNUIMessage({
            action = "ui",
            toggle = bool,
            nChar = result,
            enableDeleteButton = Config.EnableDeleteButton,
        })
        skyCam(bool)
    end)
end

I’m not entirely sure what it is talking about a nil value for Functions. Any clues?!

Does line 3 look like:
local QBCore = exports['qb-core']:GetCoreObject()

Is your qb-multicharacter modified at all? If not, I would try updating the script to see if it makes a difference (if its not already updated)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.