Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
make a .lua file in D:\SteamLibrary\steamapps\common\GarrysMod\garrysmod\lua\autorun\server
Doesnt matter what you call it, as long as you can recognize it. No special charcters.
Inside that, youll put a line
resource.AddWorkshop( "ID" )
For id, youd go to the workshop page for that addon,
We will use this as an example. On the page url, see what it says after "id="? Copy that id and put that in place of "ID" in the lua file.
Now youve forcefully made clients download your shizz.
ALWAYS make sure that the content that they download is ON your server. Always make a server collection and link that to your server. If youre starting to have too many addons, you can use a generator like... https://csite.io/tools/gmod-universal-workshop
That'll grab all the addons in your collection, grab the ids, write the code, and make the file. You just have to place it into autorun/server.
You have to go through the list of IDs it prints out and remove anything that doesn't have custom content, such as things that are just scripts.
C:\SteamCMD\steamapps\common\GarrysModDS\garrysmod\lua\autorun
That's the folder where i put the .lua file in with: resource.AddWorkshop( "370535017" )
When i connect to my own server it is downloading files, but every icon is missing, and every 3d model is just a error still. It's only downloading the lua files as far as i can tell.
Is that the wrong folder?
Like i said "When i subscribe to the collection myself aswell, then it works."
The problem is that clients who join my server don't automatically download all the neccesary files.
Not a big deal, but it doesnt make any sense how Quake 3 Arena Gamemode gets downloaded by everyone, including the maps, weapons and effects. But not the addons like HBombs and M9K Weapons...
Is there like a data download restriction that needs to be highered somewhere?
I simply suggest doing it like that so they didnt run into any issues. This guy clearly has no idea what serverside and clientside is. So he wouldnt be able to tell what to get rid of and what not to.
You make a server folder in AUTORUN, otherwise no severside lua can be run.
I've never heard of this before. Where are you getting this information? It used to be an issue but hasn't been relevant for years and has been fixed.
So you're basing off of this because of something that happened 5 months ago? Either way, im just saying your information is false. And has been dealt with years ago.
If you can find any thread or post that reinforces your opinion, id be happy to see it. In 3 years of coding and 5 years of playing the game, never have i heard of that in the last 2-3 years