Attempt to index a nil value (global 'QBCore')

just use visuals studio and highlight the function word and then right click it and press on change all occasions i think the word is, and change it to QBCore.

1 Like

Okay I’ll try that and get back to you

this is my first ever time commenting on here. but i have to say. thats the only info thats actually worked when i tried it. so thank you kind sir

Hello, I have a problem but I don’t know how to solve it

function ogLapDanceMenu()
ped = GetPlayerPed(-1);
MenuTitle = “ShitLapDanceMainMenu”
ClearMenu()
Menu.addButton(“Girl With A Top”, “lapdancewithtop”, nil)
Menu.addButton(“Girl Without A Top”, “lapdancetopless”, nil)
Menu.addButton(“Close menu”, “closeMenuFull”, nil)
end

Ensure you’re starting the script after you’ve started QB in your server.cfg.

im having issues with this here it

what am i doing wrong i?

1 Like

Are you starting the resource before qb starts in the server.cfg?

i think so this is how its set up

can you share your server terminal output from startup to this error?

Should qb-store be starting twice like that? seems kinda odd.

not work for me

Your synthax is wrong, double check the example in my initial answer and make sure you write it correctly.

@thibaultD

can anyone help me out on this, i tried to search everywhere and everything but nothing seems to help my problem out. Any of y’all know how to fix it. Please you would be the goat

1 Like

@thibaultD @schwim

Did you read the topic before posting ?
Because the first answer I gave (at the very top) should work in your case.

I did try it… where should i be putting the local QBCore = exports[‘qb-core’]:GetCoreObject()

cause i put this on line 3 and it still not worked

It should be at the very top of the file line 1


can anyone help me out on this, i tried to search everywhere and everything but nothing seems to help my problem out. Any of y’all know how to fix it. Please you would be the goat

What does your ensure section look like in server.cfg?