qbcore-framework / qb-smallresources

A compilation of small resources combined into one
GNU General Public License v3.0
49 stars 342 forks source link

🐎 Recoil on game event CEventGunShot instead of loop #459

Closed MilyonJames closed 2 months ago

MilyonJames commented 3 months ago

Describe Pull request This code is optimization only. Instead of looping at 0ms and checking for IsPedShooting, this handles the game event CEventGunShot that is triggered when a ped shoots.

Questions (please complete the following information):