How does this game get player's onsale items?

So I got interested on how this game works and I wanted to see if it doesn’t work if I changed my settings.

And the system still somehow got my inventory and that made me interested on making this post.


image

I think it searches my gamepasses using my experiences on my profile instead of my inventory but I still can’t figure how to make it work on my place

2 Likes

Something in marketplace service there is a function, like :GetDeveloperProductsAsync()
https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/GetDeveloperProductsAsync
it might be only for developer products but there is some function probably for it

You can’t get player’s gamepasses or shirt or any inventory item if their “Who can see my inventory?” is set to no one.

The buttons in image are the developer products.

image

It still somehow got my tshirt that is onsale

That might be old t-shirt, I think Hazem saves the products ids to datastore.
Try refreshing your booth?

If you have ids saved in the datastore and if player turns off their inventory then you still can buy/load that item on the booth since its on sale and its id is saved on datastore.

Example code

local datastoreservice = game:GetService("DataStoreService")
local datastore = datastoreservice:GetDataStore("Items")

game.Players.PlayerAdded:Connect(function(plr)
    local products = {} -- All the products inserted in this table
    -- Fetch all the player's shirts/gamepasses/t-shirts then insert it to products table
    -- saving the data
   datastore:SetAsync("Key_Here",products)

  -- To load the products do
  datastore:GetAsync("Key_Here")
end)

Note: The code is just an example, its just to show how it works.

They asked “How does this game get player’s items that are onsale even tho their inventory is off”

Not “How to make a game like pls donate”
I don’t think that tutorial mentioned how this system works with inventory off.

Yeah, that’s my bad, I guess I only read the content header and a little of the original post. Didn’t notice the last part.
In the instance of someone who’s not sharing their inventory I believe they comment in the description of the original game that the game may not work with your inventory off.

they use a proxy and roblox’s get request because you do not have access to this information from inside roblox studio. i’m currently looking for the t shirt one. here’s the gamepass one

https://games.roblox.com/docs/index.html

bit late but a good way to find them is by going onto the roblox website, your profile, and clicking inspect element>network, then refreshing the page. It gives you a list of requests used for the profile which contains stuff such as clothing:

https://catalog.roblox.com/v1/search/items?category=All&creatorName=MrFlimFlam&limit=120&salesTypeFilter=1

this link replacing the name returns all their shirts/t-shirts that are on-sale despite having private inventory

1 Like