Ulysses

Ulysses Stuff => Suggestions => Topic started by: OmegaAlpha on January 21, 2007, 04:55:14 PM

Title: Need automatic adding files to the res file
Post by: OmegaAlpha on January 21, 2007, 04:55:14 PM
We really need a plugin that you can tell what people to download. i hope someone gets me  ???
Title: Re: Need automatic adding files to the res file
Post by: JamminR on January 21, 2007, 05:10:34 PM
You understand that the only folder Gmod 10 lua allows writing to is /data, right?
There is no way for lua to write to /maps
Title: Re: Need automatic adding files to the res file
Post by: spbogie on January 24, 2007, 01:08:12 PM
Create an Lua script named something like "ForceDL.lua" and place it in your "garrysmod/lua/autorun/server" folder.
Add the following line to your script for each file you wish to send to the clients.
Code: [Select]
resource.AddFile("<path to file>")Replace <path to file> with the location of your file relative to the garrysmod root directory.
Title: Re: Need automatic adding files to the res file
Post by: JamminR on January 24, 2007, 06:38:42 PM
Thanks spbogie. I learn something new everyday witht this team.