[How to Fix] attempt to index a nil value (upvalue "QBCore")

Hello every one
A friend of mine is trying to create a qb-core server and is getting this script error. I don’t know how to fix this error.
Our team is only Japanese, so it takes time to fix each bug.
That’s because there is a language barrier. We have been reading various topics written in English to solve things, but for this problem we have spent a lot of time without finding a solution.
I’m writing this using translation and my limited English ability, so please forgive me if it doesn’t come across very well.

There was someone who wrote something similar, so I entered this sentence in the code, but it didn’t solve the problem.
local QBCore = exports[‘qb-core’]:GetCoreObject()

After that, the error disappeared, but I couldn’t open bossmenu no matter what I tried.
There were no server errors

We were changing the job in QBCore with vscode.To check whether the qb bossmenu was working in tandem with the QB job, we tried returning to the original QB and changed the bossmenu. I was able to open it successfully. If anyone is customizing the job, please make sure that both codes have the same content.

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