Viudes Posted September 30, 2017 Posted September 30, 2017 (edited) I get always error when i try play sound all player. Sound work localplayer but other clients get error: Clientside: function eventHandler() if source == test then triggerServerEvent("PlaySelectedMusic",resourceRoot,guiGetText(editBox),localPlayer) end end function FinallyPlaySound() x,y,z = getElementPosition(localPlayer) sound = playSound3D(guiGetText(editBox),x,y,z, true) end Serverside: function test(message) triggerClientEvent( "PlaySoundAll",root) outputChatBox(message) end Edited September 30, 2017 by Viudes
Moderators IIYAMA Posted September 30, 2017 Moderators Posted September 30, 2017 First of all check if the file exist. https://wiki.multitheftauto.com/wiki/FileExists It is possible that you downloaded the music file but the others did not because you changed some code.
Viudes Posted September 30, 2017 Author Posted September 30, 2017 3 minutes ago, IIYAMA said: First of all check if the file exist. https://wiki.multitheftauto.com/wiki/FileExists It is possible that you downloaded the music file but the others did not because you changed some code. I don't changed any code. I add spaces like you see. And I dont need check Fileexist beacuse its link https://dl.dropbox.com/s/vubbsivz6nlfs53/qQBLZMULSbo_fmt43.mp3? or i don't know what you mean
Moderators IIYAMA Posted September 30, 2017 Moderators Posted September 30, 2017 Bass error 2 is a 'file open' error. It looks like you have access to the audio, while others do not. What if you upload the music to Youtube (private) and stream it from there?
Viudes Posted October 1, 2017 Author Posted October 1, 2017 14 hours ago, IIYAMA said: Bass error 2 is a 'file open' error. It looks like you have access to the audio, while others do not. What if you upload the music to Youtube (private) and stream it from there? How i can stream music from youtube?
Moderators IIYAMA Posted October 1, 2017 Moderators Posted October 1, 2017 Afaik exactly the same way.
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