qbcore-framework / qb-inventory

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

[BUG] Trunk items disappear on not owned vehicles #367

Closed Veolene closed 1 year ago

Veolene commented 1 year ago

Summary

If you put in an item into a not playerowned vehicle, the item wil disappear after opening that inventory for the second time.

Reproduction

https://user-images.githubusercontent.com/53438206/195901163-d784f2a6-674a-429e-9947-bee96c95304d.mp4

Expected behavior

the item stays in the trunk instead of disappearing

Actual behavior

the item has been removed from the inventory

Additional context

No response

Last Updated

yesterday

Custom Resources

custom css

Resource Rename

no

Veolene commented 1 year ago

Same problem also happens with gloveboxes

i-kulgu commented 1 year ago

This is normal behavior because it's checking if the vehicle is owned :

image

This is to prevend that every data gets saved into database so after a time you have thousands of rows in your inventory table with data you don't need / use.