qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
50 stars 376 forks source link

[BUG] script:qb-core] SCRIPT ERROR: @qb-core/server/functions.lua:262: No such export CreateUsableItem in resource qb-inventory #339

Closed XxDeezixX closed 2 years ago

XxDeezixX commented 2 years ago

Describe the bug A clear and concise description of what the bug is. A stranger to qbcore should be able to read your bug report and understand how to reproduce it themselves and understand how the feature should work normally.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Use this item '....' (item's name from shared.lua if applicable)
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

Additional context owned stores stopped working so i updated qb-inventory now im getting script:qb-core] SCRIPT ERROR: @qb-core/server/functions.lua:262: No such export CreateUsableItem in resource qb-inventory

Molicheu commented 2 years ago

The export is not through qb-inventory anymore it's through qb-core

XxDeezixX commented 2 years ago

The export is not through qb-inventory anymore it's through qb-core

How do i add it to the qbcore now? thanks.......new error attempt to compare number with nil

XxDeezixX commented 2 years ago

The export is not through qb-inventory anymore it's through qb-core function QBCore.Functions.CreateUseableItem(item, data) QBCore.UsableItems[item] = data end ?

D4isDAVID commented 2 years ago

The export is not through qb-inventory anymore it's through qb-core

How do i add it to the qbcore now? thanks.......new error attempt to compare number with nil

Consider updating qb-core.