qb-weapons
qb-weapons copied to clipboard
Update main.lua for directly switch weapon
Describe Pull request If you holding any weapon and trying to switch from one weapon to another, it just showing the animation but not geting the weapon in hand. So i made the changes and seperate the logic for current weapon for weapon unarmed. It will fixes the weapon switching issue, and work fine with no other erros.
If your PR is to fix an issue mention that issue here https://github.com/qbcore-framework/qb-smallresources/issues/462
Questions (please complete the following information):
- Have you personally loaded this code into an updated qbcore project and checked all it's functionality? [yes]
- Does your code fit the style guidelines? [yes]
- Does your PR fit the contribution guidelines? [yes]