• Placement of Resources
    2 replies, posted
Hey lovely people. I was wondering if I can place my resources for addons and/or gamemodes in the addon/gamemode file-system istead of folders in the "garrysmod" directory? I'd rather have my resources (a sound file in this case) in the addon's folder instead of the gmod folder, as I often forget to bring over the resources when I transfer the addon. Can this be done? And if so; how would I import them in my glua code? Any help is much appreciated :D - FP
the /addons/ folder is a 'copy' of the gmod folder, it mirrors everything, so doing [B]/addons/myaddon/sounds/yourfolder/soundname.wav[/B] would be the same as doing [B]/garrysmod/sounds/yourfolder/soundname.wav[/B], and you include them the normal was as if it would be the linked directory.
[QUOTE=whitestar;51232429]the /addons/ folder is a 'copy' of the gmod folder, it mirrors everything, so doing [B]/addons/myaddon/sounds/yourfolder/soundname.wav[/B] would be the same as doing [B]/garrysmod/sounds/yourfolder/soundname.wav[/B], and you include them the normal was as if it would be the linked directory.[/QUOTE] Thanks man! :D A golden star for you!
Sorry, you need to Log In to post a reply to this thread.