AfterAll14 Posted January 2, 2016 Share Posted January 2, 2016 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
Addlibs Posted January 2, 2016 Share Posted January 2, 2016 I believe every (not literally every) vehicle has different sounds for engine and therefore it might be a different group. Link to comment
AfterAll14 Posted January 2, 2016 Author Share Posted January 2, 2016 Vehicle is the same. But MTA or GTA somehow assign sound group diffrently when server starts. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now