Inventory + Phone Not Working (QBCore)

I downloaded a phone and inventory and they have this error:
Inventory: @qb-inventory/client/main.lua:96: attempt to index a nil value (global ‘QBCore’)

Phone: @qb-phone/client/main.lua:221: attempt to index a nil value (global ‘QBCore’)

I don’t know how to fix it, if anybody could help me please do so. Both the phone or the inventory won’t open because of this error.
Thanks

i think your import.lua is missing on qb-core folder

1 Like

Update the files or depending on the edition you have qb core is another code but this should go:

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

Put in qb-inventory/client/main.lua:1
“local QBCore = exports[‘qb-core’]:GetCoreObject()”

Put in qb-phone/client/main.lua:1
“local QBCore = exports[‘qb-core’]:GetCoreObject()”