..:D&G:.. Posted June 30, 2015 Share Posted June 30, 2015 Hello peeps, I want to make a simple sound script for an interior, so there is 1 song playing and looping. function playCasinoMusic() sound = playSound3D("cazinomusic.mp3", 2236.4619140625, 1631.5, 1008.359375, true) if sound then setElementDimension(sound, 806) setElementInterior(sound, 1) setSoundVolume(sound, 70) setSoundMaxDistance(sound, 100) end end addEventHandler("onClientResourceStart", getRootElement(), playCasinoMusic) The problem is that the sound stars playing, like 2-3 times on top of each other... Any ideas? 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