📩 steamworks.DownloadUGC for the server!
MIT License
This module allows for servers to use the steamworks.DownloadUGC
and steamworks.FileInfo
functions, enabling runtime downloading & mounting of Workshop addons and GMA files through game.MountGMA
No additional configuration is needed, just install the module to the server and scripts can make use of it.
First, run this command in your server console to determine the correct module to download:
lua_run print("gmsv_workshop_" .. ((system.IsLinux() and "linux" .. (jit.arch == "x86" and "" or "64")) or (system.IsWindows() and "win" .. (jit.arch == "x86" and "32" or "64")) or "UNSUPPORTED") .. ".dll")
Next, download the module from the releases page
Finally, drop the DLL file in garrysmod/lua/bin
in your server files. If the lua/bin
folder doesn't exist, create it.
Either:
srcds_run
binary, this is the problem. Start it using srcds_run_x64
to launch it in 64-bit.