qbcore-framework / qb-weapons

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

[BUG] #145

Closed Sleepaiii closed 2 years ago

Sleepaiii commented 2 years ago

Describe the bug I had an old version of qb-weapons and after updating player ammo does not save and an error for WeaponData is put in server console

To Reproduce Steps to reproduce the behavior:

  1. Have weapon in inventory
  2. Use any weapon from hotbar (throws error) put weapon away and upon re-use ammo will reset to 0
  3. See error

Expected behavior Use weapon reload and and put away use again and ammo will stay

Screenshots image

Questions (please complete the following information):

Additional context Add any other context about the problem here.

Sleepaiii commented 2 years ago

fixed inventory issue