Author Topic: ULX Admin Addsounds  (Read 1785 times)

0 Members and 1 Guest are viewing this topic.

Offline Arion

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
ULX Admin Addsounds
« on: May 01, 2014, 09:30:54 AM »
Hi im trying to add some sounds/music to my brother's gmod server but i dont know how to.

I am currently superadmin on ULX admin too and i have tried commands in chat for ULX such as:
ULX playsound (sound dir)
eg. ULX playsound music\b.mp3
ULX addsound (sound dir)

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX Admin Addsounds
« Reply #1 on: May 01, 2014, 09:55:03 AM »
I don't understand what you mean. To add sounds to the server you would have to upload them via FTP into the "sound" directory located in the server's Garry's Mod root directory.
If you uploaded a soundfile into "sound/my_sounds/hello.mp3" you would this to play it:
Code: [Select]
ulx playsound "my_sounds/hello.mp3"
Keep in mind that you would have to make sure that people download them, either using resource.AddFile in a Lua script, or using ULX's forced downloads: http://forums.ulyssesmod.net/index.php/topic,3072.0.html

In ULX, there isn't any "addsound" command and probably won't ever be unless Garry adds some support for downloading soundfiles similar to PlayURL
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Admin Addsounds
« Reply #2 on: May 01, 2014, 10:27:32 AM »
Also, once the sounds are located on both the server and the client (after client downloads them as mentioned in decicus' post) the command as you show it are not used in chat.
They're used in console. There is no "ulx <command>" used in chat. We usually abbreviate chat commands. See the FAQ What ulx commands should I see in "ulx help"? or "ulx help" from console. (hint - we made no chat command for playsound)
« Last Edit: May 01, 2014, 10:29:08 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming