Ulysses Stuff > Suggestions

Need automatic adding files to the res file

(1/1)

OmegaAlpha:
We really need a plugin that you can tell what people to download. i hope someone gets me  ???

JamminR:
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

spbogie:
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: ---resource.AddFile("<path to file>")
--- End code ---
Replace <path to file> with the location of your file relative to the garrysmod root directory.

JamminR:
Thanks spbogie. I learn something new everyday witht this team.


Navigation

[0] Message Index

Go to full version