altv-issues
altv-issues copied to clipboard
Adding weaponShot or extending weaponChange event for ammunition tracking
Suggestion Since there are many edge cases to handle currently to track bullets/ammo of players it would be nice to see this feature inside the alt:V api.
Use cases Correct and easy tracking of ammunition amounts
Describe the solution you'd like
Since the server currently already knows ammo amounts and since empty weapon sound click is synced as well it would nice to see a weaponShot
event with oldAmmo
, newAmmo
and weaponHash
or an ammo param inside the weaponChange
event
Describe alternatives you've considered Designing ugly own clientside events through everyTick/interval checks to check ammunition of the current weapon and disabling ped tasks to stop the automated weaponswitch of the game. This is really bad cause u somehow rely on clientside data.
Additional context This would also help to resolve issue #667 which was a feature request to track the last bullet that got shot before the game unequips the empty weapon. I still would like to see both requests inside the api.
duplicate of #1 , but with better description
I remember talk about adding similar event, possible to add is event when weapon starts shooting and when it's stop. Otherwise it's a waste of traffic
Afaik server has that info already. It just need to be parsed.
it´s not a waste of traffic the information is already there on serverside
it´s not a waste of traffic the information is already there on serverside
That's what devs spoke some time ago, not my words
Found btw on discord that tuxick already told its possible and sent already. tuxick statement
Found btw on discord that tuxick already told its possible and sent already. tuxick statement
It doesn't matter, I'm not the one implementing said feature, also not kinda up to me that someone can change his mind
Why do u feel offended? I am posting this for documentation not to blame u :P
Nah, not offended but kinda continuing the conversation regarding it? 😃
Afaik server has that info already. It just need to be parsed.
Is this possible to add in the next update? Would be really great
Its not planned for the next update. It most likely will first be available clientside. Because server doesn't has the info yet.
Ammo getter / setter is now available in 15.0 dev.