• G-mod Server HELP please
    3 replies, posted
I have set up a server just some days ago and I am using a sort of skin as player and I know how to set up a downloadurl but somehow people can't download the skin automaticly when they join and they see me as a giant walking ERROR. does someone knows if there's a way to let people download the skin automaticly so they see me or isn't that possible?
Hello, you are looking for: [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5809.html?title=Resource.AddFile[/url] As your question/request is related to LUA you should consider taking a look at the Facepunch [URL="http://facepunch.com/forums/65"]LUA Section[/URL]. LUA Developers ain't very active in the Help & Support section so you should try to post a thread in the Question or Request sub-forums of the Facepunch [URL="http://facepunch.com/forums/65"]LUA Section[/URL]!
To expand on the above reply, with the Resource.AddFile, it should be be written in an LUA file. The ideal place to put this is in /orangebox/garrysmod/lua/autorun/server If you don't have the autorun or server folder, just make them (they aren't there automatically). Then make a file (called anything - e.g. addfiles.lua), and then add the Resource.AddFile to it. You just need to change the file destination to match the files your skin uses. [b]Example:[/b] [i]Material is in /materials/playerskin/ called main.vmt[/i] [code] resource.AddFile("materials/playerskin/main.vmt") [/code]
[QUOTE=ToshNeox;35370130]To expand on the above reply, with the Resource.AddFile, it should be be written in an LUA file. The ideal place to put this is in /orangebox/garrysmod/lua/autorun/server If you don't have the autorun or server folder, just make them (they aren't there automatically). Then make a file (called anything - e.g. addfiles.lua), and then add the Resource.AddFile to it. You just need to change the file destination to match the files your skin uses. [b]Example:[/b] [i]Material is in /materials/playerskin/ called main.vmt[/i] [code] resource.AddFile("materials/playerskin/main.vmt") [/code][/QUOTE] Hello, It can't seem to work for me I tried what you said and I think I did do something wrong, is there maybe something like a tutorial on youtube or something else? anyways thanks. sorry for bad English.
Sorry, you need to Log In to post a reply to this thread.