Garry's Mod Wiki

WorkshopFileBase:FetchSubscribed

  WorkshopFileBase:FetchSubscribed( number offset, number perpage, table tags, string searchText, boolean isUGC = nil, number filter = nil, string sort = nil )

Description

Fetches all subscriptions for the set namespace and passes the result to WorkshopFileBase:FillFileInfo.

Arguments

1 number offset
Skips the first x results.
2 number perpage
How many results per page should be returned.
3 table tags
additional tags to filter the results.
4 string searchText
text that needs to be in the addon title. Use an empty string for none
5 boolean isUGC = nil
if true it will use engine.GetUserContent instead of engine.GetAddons
6 number filter = nil
The filter for the results. (enabledonly, disabledonly)
7 string sort = nil
How it should be sorted. If set to nil, it will fallback to timeadded. (title, size, updated)