qbcore-framework / qb-weapons

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

Removed slot check from removeWeaponAmmoItem event #172

Closed GoldO-dev closed 1 year ago

GoldO-dev commented 1 year ago

Removed the or not item.slot from the if and removed the item.slot from the removeItem function. Because it is pointless

Describe Pull request I have removed the slot check from the weapons:server:removeWeaponAmmoItem event because i see no reason why it is there, it just makes it hard for people that want to use the event to remove the item, since you need to give it the itemData from the inventory and not QBCore.Shared.Items

If your PR is to fix an issue mention that issue here

Questions (please complete the following information):