• How to add a sound to the Ulx Playsound.
    12 replies, posted
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.
[QUOTE=code_gs;45288308]It will play any sound file you have on the server and you have sent to clients.[/QUOTE] Says the sound doesn't exist
[QUOTE='[AF]Apple;45288660']Says the sound doesn't exist[/QUOTE] Post the command you put in and the output/console log.
[QUOTE=code_gs;45288821]Post the command you put in and the output/console log.[/QUOTE] ] 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
[QUOTE=code_gs;45288895]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[/QUOTE] 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.
[QUOTE=code_gs;45301945]Post the new directory of the sound and the command you are using.[/QUOTE] 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.
[QUOTE=code_gs;45302746]Should be sound, not sounds. Also, don't capitalize folder names.[/QUOTE] It reconizes the sound,says it's played but no one hears it. Forcedl [CODE]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")[/CODE]
Take out "garrysmod" on your resource.AddFile.
[QUOTE=code_gs;45303508]Take out "garrysmod" on your resource.AddFile.[/QUOTE] Oh my God thank you dude.And thanks for you patience!
Sorry, you need to Log In to post a reply to this thread.