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
[ x ] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
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