• Getting client to download materials folder.
    2 replies, posted
I have an addon called AddonX for example. The structure is: /lua/autorun/main.lua <- That is the one being executed to download files. /materials/sound.mp3 /materials/icon.png So how can i get the client to download sound and icon?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/resource/AddFile]resource.AddFile[/url]
/lua/autorun/main.lua /sound/sound.mp3 /materials/icon.png and write in main.lua [CODE]if (SERVER) then resource.AddFile( "sound/sound.mp3" ) resource.AddFile( "materials/icon.png" ) end[/CODE]
Sorry, you need to Log In to post a reply to this thread.