But it litteraly works lol, idk what to say i didn’t expect it.
Could you send me a image of your script and the output?
local MS = game:GetService("MarketplaceService")
local http = game:GetService("HttpService")
local assetid = {
["TShirt"] = 2,
["Shirt"] = 11,
["Pant"] = 12,
["GamePass"] = 34
}
local function GetContent(username,userid, tshirts, cursor)
local Contents = {}
for iid,v in pairs(assetid) do
local linkforplayer = "https://robloxdevforumproxy.glitch.me/users/inventory/list-json?assetTypeId="..v.."&cursor=&itemsPerPage=100&pageNumber=%25x&sortOrder=Desc&userId="..userid
local datafromlink = http:GetAsync(linkforplayer,true)
local readabledata = http:JSONDecode(datafromlink)
local suc, er = pcall(function()
for i,v in pairs(readabledata["Data"]["Items"]) do
if v["Creator"]["Id"] == userid then
print(v)
Contents[iid] = v["Item"]["AssetId"]
end
end
end)
if not suc then
warn(er)
end
end
return Contents
end
This works, adds it to a table and i can check the website manually with the gamepass id and it’s correct.
wait wha- how it works?
Anyway thx for info, I will add it in tutorial
If your only checking for shirts and pants if the player is ingame, you can simply loop through the character and check if it’s a shirt or pants or a decal(cuz tshirts) and return them
Edit: I misunderstood, this example will only get the items the player is currently wearing. The original poster is setting out to get all the clothes in a player’s inventory.
You can avoid using a proxy which is icky, with GetCharacterAppearanceInfoAsync or going through the player’s character and checking if the child IsA(“Pants”) or IsA(“Shirt”)
here’s an example getting the player’s shirt using GetCharacterAppearanceInfoAsync
--!strict
local players: Players = game:GetService("Players")
local function get_player_shirt_id(userid: number): number?
local success, info = pcall(players.GetCharacterAppearanceInfoAsync, players, userid)
if success then
for i, asset in ipairs(info.assets) do
if asset.assetType.name == "Shirt" then
return asset.id
end
end
end
return nil
end
This gets only the shirt and pants the player currently wear isnt it?
Edit : The meaning of this proxy is that it gets all the shirts / pants and other types Player Owns not only the shirt and pant the player has on
You can get any accessory or clothing the player has on. You would simply change the asset.assetType.name == "Shirt"
to “Pants” or “T-Shirt” or “Neck Accessory”, you could edit it to get all of them at the same time, it’s only an example for the shirt
[quote=“JaTYUH, post:13, topic:1675658”]
local MS = game:GetService("MarketplaceService")
local http = game:GetService("HttpService")
local assetid = {
["TShirt"] = 2,
["Shirt"] = 11,
["Pant"] = 12,
["GamePass"] = 34
}
local function GetContent(username,userid, tshirts, cursor)
local Contents = {}
for iid,v in pairs(assetid) do
local linkforplayer = "https://robloxdevforumproxy.glitch.me/users/inventory/list-json?assetTypeId="..v.."&cursor=&itemsPerPage=100&pageNumber=%25x&sortOrder=Desc&userId="..userid
local datafromlink = http:GetAsync(linkforplayer,true)
local readabledata = http:JSONDecode(datafromlink)
local suc, er = pcall(function()
for i,v in pairs(readabledata["Data"]["Items"]) do
if v["Creator"]["Id"] == userid then
print(v)
Contents[iid] = v["Item"]["AssetId"]
end
end
end)
if not suc then
warn(er)
end
end
return Contents
end
I started to use this but how would I display it on signs?
Thats not what this proxy is for Its for getting All the shirts and Pants Player has in his inventory!!
This has been extremely helpful, thanks!!
Why do I get Http 401 Unauthorized?
You cannot access players with private inventory, with the API I mentioned, there are lot more API on the internet, you could probably find api, which can access private inventory too
Just like Ben10Tam, told it might also work
The website isn’t accessible anymore…
Oh ok, sorry for not knowing it, do you have any replacment api for it?
Like Ben10Tam and you said, “https://catalog.roproxy.com/v1/search/items/details?Category=3&CreatorName=” works perfectly fine, and it does not even need a public inventory!
It only has 10, and when I try to make it specified for only shirts it filters that 10 and only gets 4 how do you get ALL of the inventory?
I use it and it only has 10 for the [“data”]
it says “HTTP 401 (Unauthorized) - Server - Script:8” when i run the script from step 4
instead of the other proxy