Jump to content

[HELP] Sound Groups


AfterAll14

Recommended Posts

I want to mute vehicle idle sound.

I use setDevelopmentMode, then /showsound 1 to get sound group.

I watch console output and get sound group from there.

Then I use setWorldSoundEnabled(sound group, false) to disable sound.

And it is working fine.

But when I restart server sound group of iddle engine sound changes, and script is not working anymore. I need manually replace soundgroup inside script to make it work again.

Is this a bug? How to make it work properly?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...