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] Dupe combat pistol when given to another player #368

Closed StyrpexRoleplay closed 10 months ago

StyrpexRoleplay commented 1 year ago

Summary

Dupe combat pistol when you reload it and give it to another player

Reproduction

Hello, we have made an installation of QBCore-Framework and we have found a bug regarding the use of a weapon, specifically the combat pistol.

When you spawn a combat pistol, you give it to another user having loaded it with bullets and you get into a vehicle, when aiming the weapon appears in your hand but it is not in the inventory.

This only occurs when the weapon has been previously reloaded.

We have performed the same test but without reloading the weapon, and the bug does not occur.

Here I post a video where you can see: https://youtu.be/2gd76tLDhdo

Expected behavior

The expected behavior is that the weapon is given to the other player and the player who gave the weapon does not have it.

Actual behavior

When you spawn a combat pistol, you give it to another user having loaded it with bullets and you get into a vehicle, when aiming the weapon appears in your hand but it is not in the inventory.

Additional context

No response

Last Updated

Last week

Custom Resources

-

Resource Rename

-

github-actions[bot] commented 11 months ago

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