qbcore-framework / qb-weapons

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

Update main.lua #163

Closed i-kulgu closed 1 year ago

i-kulgu commented 1 year ago

Optimize shooting and ammo threads to be run only when the player is armed. This will bring the qb-weapons resmon from 0.04 to 0.00 on idle.

If your PR is to fix an issue mention that issue here

Questions (please complete the following information):