Z4Zy Posted January 15, 2019 Share Posted January 15, 2019 Hello dear ! Following function does not working with some reason that I can't investigate. It outputs "playing" but there's no sound generating ! addCommandHandler("play", function (command,number1,number2) if number1 and number2 and tonumber(number1) <= 44 then outputChatBox("playing") setWorldSoundEnabled(tonumber(number1),tonumber(number2),true) end end ) How to fix this ?? Link to comment
Zorgman Posted January 15, 2019 Share Posted January 15, 2019 setWorldSoundEnabled ^ this doesn't play the sound, just enables/disables it playSoundFrontEnd ^ probably this is what you are looking for 1 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