qbcore-framework / qb-weapons

Weapon Logic Script For QB-Core :gun:
GNU General Public License v3.0
29 stars 195 forks source link

[BUG] Dupe combat pistol when given to another player #142

Closed StyrpexRoleplay closed 1 year ago

StyrpexRoleplay commented 2 years ago

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

To Reproduce 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.

Screenshots

Questions (please complete the following information):

Additional context