General > Developers Corner

message to player who called function

<< < (2/2)

ZeD:

--- Quote from: Aaron113 on April 02, 2015, 08:09:11 AM ---This would probably get you the best sound, but it is clientside only.
http://wiki.garrysmod.com/page/surface/PlaySound

Otherwise I would recommend this run on every single player...
http://wiki.garrysmod.com/page/Entity/EmitSound

--- End quote ---
thank you, I am using sv_downloadurl , file with music do not want to dowload from my host repository, what i nedd to do additionally?

Aaron113:
You would have to run this on the server to force the client to download it.
http://wiki.garrysmod.com/page/resource/AddFile

ZeD:
so I need to add new lua script
file_load/lua/autorun/sv_files.lua
and add line resource.AddFile( string path ) in it?

Aaron113:
It should, yes.

Navigation

[0] Message Index

[*] Previous page

Go to full version