How to add a sound to the Ulx Playsound.

Own a TTT server and I want to add a sound to the “playsound” command.How is this done?Cheers!

It will play any sound file you have on the server and you have sent to clients.

Says the sound doesn’t exist

Post the command you put in and the output/console log.

] ulx playsound garrysmod/Ulxsounds/seduceme.wav

playsound is relative to the sound directory, so if the sound is in garrysmod/sound/ulxsounds/seduceme.wav, then you would put

] ulx playsound ulxsounds/seduceme.wav

There is no sound folder in garrysmod,unless you mean in scripts.I tried making the sound folder also but it still didn’t exist.

Post the new directory of the sound and the command you are using.

garrysmod/sounds/Ulxsounds/seduceme.wav
/
|
|
I made that folder
ulx playsound Ulxsounds/seduceme.wav

Should be sound, not sounds. Also, don’t capitalize folder names.

It reconizes the sound,says it’s played but no one hears it. Forcedl


resource.AddWorkshop("248583089")
resource.AddWorkshop("264021906")
resource.AddWorkshop("206752041")
resource.AddWorkshop("253736514")
resource.AddWorkshop("254177306")
resource.AddWorkshop("253736148")
resource.AddWorkshop("265714452")
resource.AddWorkshop("253737433")
resource.AddWorkshop("253736639")
resource.AddWorkshop("253736374")
resource.AddWorkshop("253736787")
resource.AddWorkshop("253736902")
resource.AddWorkshop("253737175")
resource.AddWorkshop("253737302")
resource.AddWorkshop("253737636")
resource.AddWorkshop("253737741")
resource.AddWorkshop("253737973")
resource.AddWorkshop("233967112")
resource.AddWorkshop("106404821")
resource.AddWorkshop("258844685")
resource.AddWorkshop("237552183")
resource.AddFile("garrysmod/sound/ulxsounds/seduceme.wav")

Take out “garrysmod” on your resource.AddFile.

Oh my God thank you dude.And thanks for you patience!