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

reloadPedWeapon doesn't work when the ped is aiming #489

Open
ArranTuna opened this issue Sep 18, 2018 · 0 comments
Open

reloadPedWeapon doesn't work when the ped is aiming #489

ArranTuna opened this issue Sep 18, 2018 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 18, 2018

Describe the bug
reloadPedWeapon doesn't work when the player is aiming.

To Reproduce

  • Click F8 and type 'reloadPedWeapon(getPlayerFromName("[FO]Grafu"))'
  • Close F8
  • Aim your weapon
  • Click F8 again and click 'enter' to execute the script
  • Command results: true [boolean], the ped does nothing.

Expected behavior
Should return false for the situations outlined on the [reloadPedWeapon wiki page]. It currently returns
true.

MTA Client (please complete the following information):
1.5.3

MTA Server (please complete the following information):
1.5.3

Additional context
Well, the GTA function, which reloads the weapon whenever clip ammo reaches 0, works even when the ped is aiming. I guess the MTA one is just missing for some more memory modifications to work as the default one.

From https://bugs.mtasa.com/view.php?id=9383

@ArranTuna ArranTuna added the bug Something isn't working label Sep 18, 2018
@qaisjp qaisjp added this to the Backlog milestone Sep 21, 2018
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

2 participants