qbcore-framework / qb-inventory

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

[SUGGESTION] export for returning inventory table clientside (in inventory) #503

Closed MrNewb closed 2 months ago

MrNewb commented 2 months ago

The problem

HasItem only returns a boolean, I would like to be able to return metadata/info from items in the inventory on the client.

Ideal solution

an export to return the entire table of items in players inventory.

(im aware I can do this in the framework but inventory should be separate)

Alternative solutions

I could deal and just check the framework but my bridge will be sad.

Additional context

Thanks for coming to my ted talk

Cocodrulo commented 2 months ago

Added PR to add this

MrNewb commented 2 months ago

Thanks to Coco and the qb team this pr was merged