Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting weapon slot to 0 when reloading makes clip ammo stick at 0 #499

Open
ArranTuna opened this issue Sep 18, 2018 · 1 comment
Open
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

Describe the bug
If you run out of ammo when firing a weapon and decide to set the slot to 0, the ammo in clip of that weapon will stick to 0 and won't reload once taking the weapon again.

To Reproduce

Fire the weapon till the clip ammo goes 0
Once the player starts reloading, do 'crun setPedWeaponSlot(localPlayer, 0)'. This has to be done before the player finishes reloading.
Set the slot back to the previous weapon
Ammo in clip stays at 0 and doesn't want to reload (reloadPedWeapon doesn't work for weapons like rocket launchers, sniper).

Expected behavior
Player should reload weapon when switching back to that weapon.

Screenshots
If applicable, add screenshots to help explain your problem.

MTA Client (please complete the following information):
1.5.5

MTA Server (please complete the following information):
1.5.5

Additional context
https://bugs.mtasa.com/view.php?id=8637

@ArranTuna ArranTuna added the bug Something isn't working label Sep 18, 2018
@botder botder added this to the Backlog milestone Mar 3, 2019
@Pirulax
Copy link
Contributor

Pirulax commented Nov 13, 2020

Probably some desync / AC issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants