I’m trying to make a gear gui similar to catalog heaven, but I can’t figure out how to get a list of gear from the marketplace.
1 Like
local AvatarEditorService = game:GetService('AvatarEditorService')
local Params = CatalogSearchParams.new()
Params.CreatorType = Enum.CreatorTypeFilter.User --> user or group
Params.CreatorId = 1 --> creator id
Params.Limit = 30 --> items per page
Params.MinPrice = -1 --> minimum price
Params.MaxPrice = 50000 --> maximum price
Params.AssetTypes = {Enum.AvatarAssetType.Gear} --> asset types
Params.IncludeOffSale = true --> include offsale
Params.SearchKeyword = '' --> search keyword
local Results = AvatarEditorService:SearchCatalog(Params)
print(Results:GetCurrentPage())
Results:
You don’t need to run http requests like that roblox has a built in thing for searching the catolog
1 Like
how do you set what page its on
local AvatarEditorService = game:GetService('AvatarEditorService')
local Params = CatalogSearchParams.new()
Params.CreatorType = Enum.CreatorTypeFilter.User --> user or group
Params.CreatorId = 1 --> creator id
Params.Limit = 30 --> items per page
Params.MinPrice = -1 --> minimum price
Params.MaxPrice = 50000 --> maximum price
Params.AssetTypes = {Enum.AvatarAssetType.Gear} --> asset types
Params.IncludeOffSale = true --> include offsale
Params.SearchKeyword = '' --> search keyword
local Results = AvatarEditorService:SearchCatalog(Params)
local allResults = {}
local function addPage(page)
for i, v in pairs(page) do
table.insert(allResults, v)
end
local succ, _ = pcall(function()
Results:AdvanceToNextPageAsync()
end)
if succ then
addPage(Results:GetCurrentPage())
end
end
addPage(Results:GetCurrentPage())
print(allResults)
1 Like

