I need this for a donate pls type game i’m creating.
I’ve already added shirts, pants, tshirts.
But, i can’t figure out how to add gamepasses to it.
Any help is appreciated, i also found Catalog APIs this, but i read trough it and it didn’t make any sense for me.
Is there any way to use the same method as shirts and tshirts?
local Gamepasses = "https://search.roproxy.com/catalog/json?CatalogContext=2&Category=34&CreatorID=%s&CurrencyType=0"
local function Gamepass()
cursor = cursor or ""
local requestUrl = Gamepasses:format(tostring(userid))
print(requestUrl)
local success, result = pcall(function()
return http:GetAsync(requestUrl)
end)
if success then
if result then
local success2, result2 = pcall(function()
return http:JSONDecode(result)
end)
if success2 then
if result2 then
for _, tshirt in ipairs(result2.data) do
table.insert(Content, tshirt.id)
end
cursor = result2.nextPageCursor
if cursor then
return GetContent(username, Content, cursor)
else
return Content
end
end
else
warn(result)
end
end
else
warn(result)
end
end
i’ve found a way to get the “link” to it but i’m not sure if it’s correct