RuisSoftware / FiveM-Resources-2024

I make mods for FiveM.
https://discord.gg/xKBVd8h4S2
GNU General Public License v3.0
104 stars 191 forks source link

Ammo Duplication Glitch #303

Closed Arcainex closed 3 years ago

Arcainex commented 3 years ago

Describe the bug When you spawn in a Pistol (as Item) and the ammo, if you put the pistol in the 1st slot and the ammo on the 2nd slot and spam R you'll pretty much dupe the ammo.

To Reproduce Steps to reproduce the behavior:

  1. Put your pistol in 1st slot
  2. Put pistol ammo in 2nd slot
  3. Press R countless times
  4. See your ammo dupe

Expected behavior When I press R it was supposed to unload the ammo in the pistol and load again

Screenshots image Code used to spawn ammo: image

ESX version:

Additional context Add any other context about the problem here.

Followed Wiki Yes

Arcainex commented 3 years ago

Closing the issue just 5 seconds after opening: The issue was that the ammo counts as a mag, so I had 15 mags. Huge sorry !