qbcore-framework / qb-inventory

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

Added config for throwable items #457

Closed GttMone closed 7 months ago

GttMone commented 10 months ago

Added config for throwable items and giving ammo accordingly

Description

The PR adds a table for throwable weapons in the config.lua and uses that list instead of hardchecking when equipping a weapon.

It should be merged, because it makes it clear for people which weapons are throwables and should receive 1 ammo. Usefull for when adding custom weapons

It kind of fixes an issue, because it makes the script more flexible for customisation & addon weapons instead of relying on hard typed if-statements

Checklist

github-actions[bot] commented 7 months ago

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