AlexWo Posted July 28, 2012 Posted July 28, 2012 Client: function onResourceStart() local sound = playSound3D("sounds/Avicii.mp3", 373.14, -125.21, 1001, true) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Meta: "Alex" name="RoundMusic" version="1.0.0" type="script"/> everytime when I start the script it sais : Couldn't find the script music/Avicii.mp3 for resource speaker
Anderl Posted July 28, 2012 Posted July 28, 2012 This means the sound could not be found. Check if its path is right.
Toyota97 Posted July 28, 2012 Posted July 28, 2012 It's better be like this function onResourceStart() local sound = playSound3D("sounds/Avicii.mp3", 373.14, -125.21, 1001, true) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart)
Anderl Posted July 28, 2012 Posted July 28, 2012 It's better be like this function onResourceStart() local sound = playSound3D("sounds/Avicii.mp3", 373.14, -125.21, 1001, true) end addEventHandler("onClientResourceStart", resourceRoot, onResourceStart) It's exactly the same as his code.
BorderLine Posted July 28, 2012 Posted July 28, 2012 make sure if the mp3 file its same name than in the meta and resource
albers14 Posted July 28, 2012 Posted July 28, 2012 Whats the name of the sound? You sure its spelled 100 percent correct? with capital letters, correct format so on?
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