qbcore-framework / qb-inventory

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

Inventory fix to major ammo copy glitch #285

Closed SOH69 closed 2 years ago

SOH69 commented 2 years ago

Suppose you have any loaded gun in slot 1 and a empty gun in slot 2. You just pull up your 1slot gun, shoot few bullet(not necessary) then put it in pocket, then press 1 and 2 at the same time in such a way that the gun at slot 2 comes atlast, and you get ur 1st slot weapon ammo copied to 2nd slot weapon. Try it! I hope I you understood what i tried to tell!

There are more fixes in qb-weapons

CodeRed57 commented 2 years ago

glitch now is fixed but i can make same glitch with 2 weapons like micro_smg and micro_smg its work you make this code if name ~= weaponName then ammo = 0 end then if weapons have same name u can make glitch glitch work in 2 weapons with same name

i have another glitch take weapon full ammo in your hand from slot 5 and shot 1 time then drag empty weapon to slot 5 and shoot again this's work im fix that u have to disable drag from inv like when u drag item from solt up item ,u cant swap item's by drag this glitch i can add ammo in any weapon like knife and also smg akm sniper