Jump to content

[HELP] 3D Sound multiple sound


Recommended Posts

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) 
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...