FiveM has a limit of about 100 active soundIDs, if you don't correctly release a soundID you end up with a -1 ID which ends up muting any native sounds, even native sounds outside the scope of this resource(e.g. police sirens).
Solution
Correctly release sounds IDs after use or before creating a new one.
I've also included the same fix from #1027
Pull Request Checklist:
[x] Have you followed the guidelines in our Contributing document and Code of Conduct?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you built and tested NPWD in-game after the relevant change?
Pull Request Description
Bug
FiveM has a limit of about 100 active soundIDs, if you don't correctly release a soundID you end up with a -1 ID which ends up muting any native sounds, even native sounds outside the scope of this resource(e.g. police sirens).
Solution
Correctly release sounds IDs after use or before creating a new one.
I've also included the same fix from #1027
Pull Request Checklist: