qbcore-framework / qb-inventory

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

[BUG] - RemoveItem #337

Closed mirrox1337 closed 1 year ago

mirrox1337 commented 2 years ago

Describe the bug If you consume an item with hotkey twice the item will be consumed twice and give no effect, even if progressbar is running. I don't remember this being a problem before inventory changes

To Reproduce Steps to reproduce the behavior:

  1. Put a consumable on a hotkey
  2. Fat-fingerer the hotkey twice
  3. Item gets removed twice

Expected behavior Remove the item once

Screenshots https://streamable.com/taurw0

Questions (please complete the following information): - When you last updated: [e.g. last week]

Today (2022-08-26)

- Are you using custom resource? which ones? [e.g. zdiscord, qb-target]

lj-inventory

No

Additional context

BerkieBb commented 2 years ago

This would fit more in qb-smallresources, as the issue lies there, not in qb-inventory, qb-smallresources removes the item before it triggers the event to eat, meaing nothing is stopping the usage and removal of the item, only the client side implementation

github-actions[bot] commented 1 year ago

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