ForceDL HELP PLEASE
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Oct 19, 2014 12:08 pm
ForceDL HELP PLEASE
I recently bought a Garry's mod server and am currently in the process of setting it up. I have been attempting to ForceDL the addons onto people when they join the server and I cannot seem to get it to work. I have tried adding things through workshop and adding whole directories with the old code. I really need someone to help walk me through this.
-
- This is my homepage
- Posts: 204
- Joined: Wed Feb 19, 2014 6:07 pm
- Location: Dallas, TX
Re: ForceDL HELP PLEASE
Create a LUA file called 'resource.lua' in your lua/autorun/server directory. Next make sure the files you want to be downloaded by clients upon joining has been uploaded to your server via FTP, then for example you would put this line of code in the 'resource.lua' Once you finish setting up your all the stuff you want to be force downloaded you got to your NFO control panel, and click on the 'Websync' tab and click "Sync files" For this you need a Webserver, but assuming you are running a server on the NFO shared machines, you are given one for free. You can check your 'Events log' to see the progress on the websync, once it's done you simply restart your server.
You can also have Workshop addons download upon joining, and its really easy. Everything is the same except you make a new file called 'workshop.lua' in your lua/autorun/server directory, and you would put this line of could and the number of the workshop item found at the end of the link. Example of the code you would paste in the lua file
For more information on how FastDL works visit http://wiki.garrysmod.com/page/resource/AddFile
For more information on how forcing content via Steam Workshop visit http://wiki.garrysmod.com/page/resource/AddWorkshop
Hope i explained this well
Code: Select all
resource.AddFile( models/example/example.mdl )
You can also have Workshop addons download upon joining, and its really easy. Everything is the same except you make a new file called 'workshop.lua' in your lua/autorun/server directory, and you would put this line of could and the number of the workshop item found at the end of the link. Example of the code you would paste in the lua file
Code: Select all
resource.AddWorkshop( 9999999 )
For more information on how FastDL works visit http://wiki.garrysmod.com/page/resource/AddFile
For more information on how forcing content via Steam Workshop visit http://wiki.garrysmod.com/page/resource/AddWorkshop
Hope i explained this well
