![]() ![]() ![]() In the sv_a (or whatever u named it) use resource.AddSingleFile. lua file, don't create it, and don't bother with resource.AddSingleFile) Now you should mark those sound files as downloadable for the clients (honestly you could skip this step if you ASSURE that people will always directly subscribe to the addon on Workshop, without doing this it will not work when you add your addon to server's collection! If you're ok with that then don't follow anything I said related to the. Garrysmod/addons/fancysounds2bydemoknight/sound/fancysounds123/bigfart.wav Path should look something like this: garrysmod/addons/ /sound/ /. With the file created, leave it blank for now and upload your sounds. It's path should look something like this: garrysmod/addons/ /lua/autorun/server/sv_a (doesn't have to be called sv_a, but that's how it usually is called. lua file that will be automatically executed when your addon loads / mounts. You need to understand the file structure of an addon, read Lua Folder Structure.īasically you need to create. So yeah, you need to create an addon, a little Lua will be required tho (just one function). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |