qbcore-framework / qb-inventory

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

[BUG] Exploit with weapons and ammos #543

Closed HideMyFace closed 1 month ago

HideMyFace commented 3 months ago

Summary

Exploit with weapons and ammos

Reproduction

When you have two weapons, like an SMG and a pistol. Take the pistol, use ammo and while reloading the weapon switch to the other, it will be reloaded. Or it may happen that no weapon is reloaded and the ammunition is consumed. You can also perform an exploit in this reload that causes the ammunition to recharge beyond what is expected in both weapons. Just to be sure, I'm using the latest qb-inventory.

Expected behavior

The ammo not working with incorrect weapons.

Actual behavior

The ammunition disappears or goes to another weapon and can even go to both weapons in the inventory.

Additional context

https://youtu.be/LtatKzOwGTk

Last Updated

Downloaded a fresh qbcore inventory today

Custom Resources

Boii farming, Boii consumables, Illenium appearance, Project Sloth hud and buffs and qt crafting.

Resource Rename

No

github-actions[bot] commented 1 month ago

This issue has had 60 days of inactivity & will close within 7 days