Workshop force Download

So it has been awhile since I’ve done anything with Garry’s Mod - I remember there was a way to make it so players download addons from workshop via a lua script I just don’t seem to find the syntax of the functions…

resource.AddWorkshop
google

Thanks