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

onClientWorldSound is only cancellable for vehicles sounds #3269

Open
1 task done
TheCrazy17 opened this issue Dec 12, 2023 · 2 comments
Open
1 task done

onClientWorldSound is only cancellable for vehicles sounds #3269

TheCrazy17 opened this issue Dec 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@TheCrazy17
Copy link

TheCrazy17 commented Dec 12, 2023

Describe the bug

Previously, you could cancel any sound with onClientWorldSound and cancelEvent(), but now it apparently only works for vehicle engine sounds.

Steps to reproduce

  1. Run this code:

addEventHandler("onClientWorldSound", root, function() cancelEvent() end)

  1. Game sounds will continue to play and works normally (except, for the vehicles engine sounds).

Version

Client: Multi Theft Auto v1.6-release-22330 (Windows 11 64-bit)
Server: MTA:SA Server v1.6-release-21846 (Windows 11 64-bit)

Additional context

https://www.youtube.com/watch?v=ctiIsrUPX4c

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@TheCrazy17 TheCrazy17 added the bug Something isn't working label Dec 12, 2023
@srslyyyy

This comment was marked as resolved.

@TheCrazy17
Copy link
Author

TheCrazy17 commented Dec 28, 2023

@TheCrazy17 can you confirm whether it started happening in r22320? (older version are available here: https://nightly.multitheftauto.com/)

I tested it on the older version of MTA 1.5.9 that lets you download, and the bug continues, so I guess it would be older than that.

The strange thing is that I remember that before I let you cancel almost all the sounds, I for example want to cancel only the shots of some weapons and not the sounds of reloading them.

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