local url = ("https://inventory.roproxy.com/v2/users/%s/inventory?assetTypes=TShirt&limit=100&sortOrder=Asc"):format(tostring(UserId)) -- The TShirt is the AssetType
local url = (“https://www.roproxy.com/users/inventory/TShirt”):format(tostring(UserId))
does not work. Do you mind sending the entire url and i will figure it out based off that?
Hey i just followed your tutorial and I think it’s outdated…
when i run it just gives me the error: HTTP 401 (Unauthorized) …
thank you this worked omg wow
<3 thank you so much this saved my life bro i started getting stressed
AND TO PEOPLE WHO ARE LOOKING AT THIS TUTORIAL IN ORDER TO GET HELP MY CODE IS:
local HttpService = game:GetService("HttpService");
local remote = game.ReplicatedStorage.Inventory
remote.OnServerInvoke = function(plr, UserId)
local followers = {};
local url = ("https://inventory.roproxy.com/v2/users/%s/inventory?assetTypes=TShirt&limit=100&sortOrder=Asc"):format(tostring(UserId))
local success, output = pcall(function() return HttpService:JSONDecode(HttpService:GetAsync(url)) end);
if not (success) then
print("Error fetching fat stacks of info")
return followers;
end
for _, v in pairs(output.data) do
table.insert(followers, {
name = v.name;
displayName = v.displayName;
userId = v.id;
});
end
return followers;
end
THIS RETURNS A TABLE OF WHATEVER ASSETTYPE YOU PUT IN:
PUT THE ASSET TYPE IN THE URL
"https://inventory.roproxy.com/v2/users/%s/inventory?assetTypes=(((ASSET-TYPE-HERE)))&limit=100&sortOrder=Asc"
example:
"https://inventory.roproxy.com/v2/users/%s/inventory?assetTypes=TShirt&limit=100&sortOrder=Asc"
THIS GIVES YOU ALL A PLAYERS T-SHIRTS
HERE IS A LIST OF ALL THE ASSET TYPES:
https://developer.roblox.com/en-us/api-reference/enum/AssetType