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

Hello all, hope i can help a little and sorry for my english if it’s bad ^^.

  • First check your ensure files (qb-core)
  • Second check the manifest (fxmanifest.lua or __resource.lua and the client_scripts, server_scripts and shared_scripts variables list inside)
  • Third and important, don’t forget, in the beginning of your script, to initialize the variable QBCore. IF you do not, he’ll return a nil for all the call of QBCore (Functions, Shared, etc…)

local QBCore = exports['qb-core']:GetCoreObject()

Hope you make it and have a good day.

I have a problem with this



Hey there i am havi



ng this issue

Where to put it on which line?

And i got this ?


`This is when i put the line you write

1 Like

Hey, this error isn’t QB related. There is no ‘Data’ (variable or function) at line 11 in the actual version (or even in the older version I use). You config file must’ve been modified.

Can I bother you for yo help about the last message

Did u get help for this

Bro mine is doing this

shops] Error parsing script @qb-shops/config.lua in resource qb-shops: @qb-shops/config.lua:1: unexpected symbol near ‘-’

Someone can help me with this

Have you figured it out ? Looks like you only have a syntax error which should be an easy fix.


how do i fix this
local QBCore = exports[‘qb-core’]:GetCoreObject()

QBCore.Commands.Add(‘bankstockade’, function ()
TriggerClientEvent(‘Transport:weapons’)
end)

1 Like

How do u pplz break these things lmao

i know that you put it in the client/main.lua but on what line

QBCore = Nil
local QBCore = exports[‘qb-core’]:GetCoreObject()
always at that top of server and client lua

Anyone know how i would go about fixing this these errors

Hi everyone any can help me with this 2 things

Hi everyone, having this issue where people trying to access the server after character select are greeted with a black screen and spinning icon. on the character select screen their money shows as NAN and error as shows up like this…

Any suggestions by chance


when i try to reload nothing happens and this error is in f8 any suggestions