qbcore-framework / qb-inventory

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

[BUG] Licenses Meta-Data Not Saving #534

Open krash1989 opened 3 weeks ago

krash1989 commented 3 weeks ago

Summary

If you buy a weapon/drivers license or ID from city hall it shows information in the new inventory until you give it to another user, then it immediately goes blank in information, losing the metadata?

Reproduction

  1. Buy a weapons license at the updated qb-city hall
  2. Inspect weapons license, note it has your information
  3. Give weapons license to another user, note it loses all information immediately.
  4. Repeat steps for drivers license & ID. Makes it impossible for people to know if it's just some random ID you have.

Expected behavior

Previously the qb-inventory would save the metadata of the licenses and be able to "use" the items to flash a notification in the screen, it no longer does either.

Actual behavior

Licenses lose meta data, even when given back to the original player they end up with just the description of the license.

Additional context

No response

Last Updated

Today

Custom Resources

No

Resource Rename

no

Destructor commented 3 weeks ago

I tested same problem, the metadata is not linked to the item or a variable deletes the information, the licenses are blank after transfer to another player or a drop on the ground, or storage (stash, trunk,..)