#QBCoreServerRemoveItem?

1 messages · Page 1 of 1 (latest)

sterile flume
#

Use the qb inventory exported functions instead

tiny light
#

how?

sterile flume
#

To use exported functions?

tiny light
#

i used fix as was in announcement in qb Discord but i cant get it to work as after use of item it is not removed from player like infinity item

#

i'm using lj inventory

sterile flume
#

Ah. Don’t know what to tell you then. I’d probably check your inventory code or documentation for exported functions

tiny light
#

lj is same as qb just different css

sterile flume
#

Why can’t you call the function within that error message?

tiny light
#

its what i changed from QBCore:HasItem to QBCore.Functions.HasItem

#

how it needs to be called to remove item from inventory after use?

sterile flume
#

Did you check the function definition?

tiny light
#

not really shore about that, not really experienced in developing

sterile flume
#

Search the codebase for that function name to see how it’s being called and you might find the definition as well which contains the parameters and possibly some comments

#

If what I’m saying doesn’t make any sense, read a basic programming guide or intro to Lua