marty000123 Posted June 27, 2014 Share Posted June 27, 2014 Hey guys, I want to play music in the server as owner, so everyone in the server will hear it at all time. This is the music.lua: function PlayMusic () local sound = playSound("http://188.138.108.119/yt/a/5a/nightcore_a_love_like_war_mp3_69041.mp3") end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), PlayMusic) And this is the meta.xml: But it's not working, when I do /reloadall /reload /refresh and /refreshall, and do /start music, nothing starts. No music. Can anyone help me out? Regards, Marty Link to comment
SkatCh Posted June 27, 2014 Share Posted June 27, 2014 i think your music link must be format pls . addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() playSound(""[url=http://www]http://www[/url].181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls"") end end ) meta or you can use music from ur computer so you need to add the music file inside ur resource folder then add this in ur meta file. "musicName.mp3" /> 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