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

[BUG] Bullet reload animation #452

Closed Aendirr closed 9 months ago

Aendirr commented 12 months ago

Summary

If we open the inventory quickly before the animation during full ammo reload, we can drop the bullet to the ground. Animation is not cancelled.

Reproduction

I put the bullet on the 2nd button in the inventory, I opened the inventory directly before the progressbar opened and threw the bullet on the ground. Even though I don't have the bullet, the animation was not canceled and filled the bullets

Expected behavior

While I was filling the bullet, if I dropped the bullet in the 2nd slot, I waited for the progressbar to cancel.

Actual behavior

There was no cancellation in the Progressbar and the shells were reloaded.

Additional context

https://streamable.com/b5iytq

Last Updated

I did the update yesterday. For this, I made him take the bullet directly, I reduced the waiting time in the progressbar.

Custom Resources

none

Resource Rename

qb-weapons

github-actions[bot] commented 9 months ago

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