qbcore-framework / qb-weapons

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

Update main.lua for directly switch weapon #194

Open warlikeprince opened 1 month ago

warlikeprince commented 1 month ago

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):

mhyssasilva commented 1 month ago

It's working but you see the new weapon you want to switch directly in the animation when you pull the old one ahah

warlikeprince commented 1 month ago

Yes im working on it for animations.

mhyssasilva commented 1 month ago

Nice ! Tell me when it's done, and good luck !