Hello so first of im learning i have searched forums to try and resolve this issue but nothing seems to be helping.
Im using the FrameWork QBCore and im running the script and it keeps giving me the error attempt to index a nil value (global ‘QBCore’) i fell this would be quite a easy fix but im unsure so if someone could help it would be great
Hey !
I’m not really familiar with QBcore yet, but when I check the code of multiple of the QBcore scripts I have on my QBtest server they don’t initialize the QBcore object the same way as you do. The way you are doing it looks more like the ESX way.
QBCore is not backwards compatible with itself so you will need to stay up to date with their latest changes so I would recommend just joining their discord
Hey
Could you give us a little more details (what action make the error pop up, screen of the console with the error and the code of the scripts that generate the error)
Hum… Check in your ‘server.cfg’ if the order in which you start resource is good (and that you put your resources in the right folder ([qb]) :
You could try to add the following to the ‘fxmanifest.lua’ of the scripts that are genereting errors (instead of using the method I shared at the beginning) :