Snakegold Posted July 25, 2018 Share Posted July 25, 2018 (edited) guys can you tell me how to play sound after 1 sec ? i tried this but nothing happened function playsound () local sound = playSound("mysound.mp3") setTimer(function() setSoundVolume(sound, 0.5) end, 2000, 1) end addCommandHandler("thecommand", playsound) oh never mind i fixed it Edited July 25, 2018 by Snakegold Link to comment
Captain Cody Posted July 25, 2018 Share Posted July 25, 2018 function playsound () setTimer(function() local sound = playSound("mysound.mp3") setSoundVolume(sound, 0.5) end, 2000, 1) end addCommandHandler("thecommand", playsound) 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