Korioz / krz_personalmenu

🎓 Personal Menu supporting ESX
GNU General Public License v3.0
66 stars 62 forks source link

Weapons: Update weapon menu #103

Closed JustGodWork closed 2 years ago

JustGodWork commented 2 years ago

Added function that keep track of ammo in ped weapon and refresh weapon menu

Korioz commented 2 years ago

Ammo updates were already tracked by the ui, i don't see the utility of this PR. Also note that this is really bad practice in terms of performance, the ui is rendered every tick and there is no need to fetch every tick esx weapons config.

JustGodWork commented 2 years ago

If you drop a weapon with less ammo than at your connection you can pick it up with as much ammo as at the connection it's a flaw