Hi, i’m developing my server and I have a problem, the boss menu for all jobs and gangs are not working. I have revised the qb-core and qb-management folders and it seems that it is alright. I’m not very good with this things so a bit of help would be nice.
The only error I got it’s this one but I can’t figure out what happens in the line:
Your error is stating that there is a nil value. Something that is unset. When you see the error in your console it says global lang
It’s saying that global variable Lang is nil, meaning it’s not been initialised. On that line in your code it’s using Lang to find the message relevant to the set language.
It seems your missing the language files that this part of code relies on. They also are used to define this global Lang variable and initialise it which is why it is nil, likely because they are missing. Check the qb-management GitHub repo, you’ll see in the fxmanifest it’s got language files under the shared scripts key referencing the locales folder.
Check you have these locale files still and ensure they are referenced in the shared scripts, else, remove the Lang reference on that line and just type a relevant message for that option in whichever language your server is going to be based in. Hope this helps
Be aware the funds are different on qb-management to the qb-banking funds. I’ve no idea why they decided to split them like that. The menu is accessible to those in a position of power, i.e the Police is rank 4 (Chief) from my understanding but if you inspect the code you’ll be able to alter who has access to the menus but will likely need some manual adjustments.
In game ensure you are rank 4. For example /setjob [id] [job (police for example)] [rank (4 for example] then try