AddWorkshop not downloading

Post Reply
djmuz
A semi-regular
A semi-regular
Posts: 15
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Jan 17, 2015 10:58 am

AddWorkshop not downloading

Post by djmuz »

Below is the code I use to attempt to send my custom content to my clients.

Code: Select all

if not SERVER then return end
resource.AddWorkshop (" 405024478" )
The workshop ID is a collection of my content. The file has been placed in lua/autorun/client and produces no errors when run. When I connect to the server, I do not download it, despite my downloads being enabled and my not having the addon on my machine.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: AddWorkshop not downloading

Post by soja »

Do you have an API key set?
Not a NFO employee
djmuz
A semi-regular
A semi-regular
Posts: 15
Joined: Sat Jan 17, 2015 10:58 am

Re: AddWorkshop not downloading

Post by djmuz »

soja wrote:Do you have an API key set?
API key and collection ID has been set in Easy Setup.
djmuz
A semi-regular
A semi-regular
Posts: 15
Joined: Sat Jan 17, 2015 10:58 am

Re: AddWorkshop not downloading

Post by djmuz »

EDIT:
FIXED by moving file to autorun/server and naming it "resources.lua" and giving the file the ID's of the actual addons rather than the collection.

Code: Select all

if not SERVER then return end
resource.AddWorkshop ( "405012547" )
resource.AddWorkshop ( "405013997" )
resource.AddWorkshop ( "405015783" )
User avatar
hiimcody1
Former staff
Former staff
Posts: 1616
Joined: Wed Dec 28, 2011 4:59 pm

Re: AddWorkshop not downloading

Post by hiimcody1 »

I _think_ you can't add collections using that lua, so that would make sense.
Post Reply