Basically this works like the addon directory everything that lands on the directory ‘<root>/garrysmod/vfs’ can be used from the filesystem like with the addons, as it will add the search path for it. The advantage in this is you can for example download things with http.Get without destroying your addons or root directory while everything sits clean in vfs.
Why would I need that
Haven’t you ever though about sending all models and sounds and who knows what else while the player is already on the server? With this it is possible.
r - Read
w - Write
a - Append
b - Binary
t - Text
vfs.Write(handle, write_type, type_params)
VFS_WRITE_DATA, data, size
vfs.Seek(handle, pos, method)
Keep in mind everything you write/read will only happen in <root>/garrysmod/vfs, you can also NOT escape via …/ or …\ you can also NOT use the absolute paths like C:\ something
Edit: Looks like the code tag is somewhat broken as it adds a lot of space after the code, so I’ll use the lua tag for now.