Attempt to call a nil value (field 'IsFunction')

I’m getting these errors, Not sure what caused them and I’m tired of bashing my head trying to figure out whats causing it, I’m getting several more of these for varying scripts, I know its not the scripts themselves because when I remove it it just ends up showing the errors for other things. Someone please tell me wtf is going on here?

SCRIPT ERROR: qb-core/client/functions.lua:13: attempt to call a nil value (field 'IsFunction

ref qbcore/client/functions.lua:13)

LINE 13: if QBCore.Shared.IsFunction(args[1]) then
LINE 14: cb = args[1]
LINE 15: table.remove(args, 1)
LINE 16: end

TriggerCallback (@codem-multicharacter/client/utility.lua:14)

LINE 14: Core.Functions.TriggerCallback(name, function(payload)

SCRIPT ERROR: error object is not a string

SCRIPT ERROR: qb-core/client/functions.lua:13: attempt to call a nil value (field ‘IsFunction’)

ref (@qb-core/client/functions.lua:13)

TriggerCallback (@codem-mechanic/client/bossmenu.lua:317)

LINE 317: Core.Functions.TriggerCallback(name, function(payload)

SCRIPT ERROR: error object is not a string

Hopefully you found a fix before I write this! Make sure QBCore is starting before any other scripts in your server.
Ex: ensure qb-core
ensure codem-multicharacter

Also, In older QBCore versions, QBCore.Shared.IsFunction was provided by shared.lua. In newer QBCore, that helper was removed or renamed (e.g. to IsType), so any script still calling Shared.IsFunction will break.

If you still have issues, just contact CodeM Support.

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