#meS Posted August 8, 2015 Share Posted August 8, 2015 Hello how to play sound for all players? I know playSound but not working. Thanks in advance. Link to comment
iMr.SFA7 Posted August 8, 2015 Share Posted August 8, 2015 addEventHandler ("onClientResourceStart",resourceRoot, function () local player = getElementsByType("player") for i,v in ipairs(player) do if isElement ( sound ) then destroyElement(sound) local sound = playSound ("sound.mp3") setSoundVolume ( sound , 0.5 ) end end end ) Link to comment
iMr.SFA7 Posted August 8, 2015 Share Posted August 8, 2015 nope not working. The sound File in script ?? 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