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

onClientPlayerWeaponSwitch should trigger for remote players #1141

Closed
srslyyyy opened this issue Oct 29, 2019 · 1 comment
Closed

onClientPlayerWeaponSwitch should trigger for remote players #1141

srslyyyy opened this issue Oct 29, 2019 · 1 comment
Labels
enhancement New feature or request
Projects
Milestone

Comments

@srslyyyy
Copy link
Contributor

Is your feature request related to a problem? Please describe.
onClientPlayerWeaponSwitch doesn't trigger when weapon slot is changed for remote players.

Describe the solution you'd like
It should trigger also for remote players. If possible.

Describe alternatives you've considered
At the moment, there's no possibility to detect changes for weapon slot, the only possibility is using loop. (for render usage f.e)

Additional context
It would be very nice, if we could detect those changes on client-side by event provided by MTA.
I think this is possible to do, since onClientPlayerWeaponFire triggers for local/remote player.

@srslyyyy srslyyyy added the enhancement New feature or request label Oct 29, 2019
@sbx320
Copy link
Member

sbx320 commented Nov 1, 2019

We'd probably need a new event name, as scripts may rely on the event triggering only for the local player.

@qaisjp qaisjp added this to Incoming in Proposals via automation Mar 14, 2020
@qaisjp qaisjp moved this from Incoming to Accepted in Proposals Mar 14, 2020
@patrikjuvonen patrikjuvonen linked a pull request Mar 31, 2021 that will close this issue
@patrikjuvonen patrikjuvonen added this to the Backlog milestone Mar 31, 2021
@patrikjuvonen patrikjuvonen linked a pull request Apr 10, 2021 that will close this issue
MTABot pushed a commit that referenced this issue May 23, 2024
c4d63b4 Trigger onClientPlayerWeaponSwitch Event for Remote Players (fix #1141) (#3291)
Dutchman101 added a commit that referenced this issue May 23, 2024
MTABot pushed a commit that referenced this issue May 23, 2024
032dbd3 Revert "Trigger onClientPlayerWeaponSwitch Event for Remote Players (fix #1141) (#3291)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Proposals
  
Accepted
Development

Successfully merging a pull request may close this issue.

3 participants