How to do remaining stock UI for free UGC?

Hello everyone, i want to do a UI that will show remaining stock of specific free ugc limited, but idk how. UI is done, but i dont know how to make remaining stock counting in my UI. Any help is appreciated.

1 Like

You can use MarketplaceService:GetProductInfo(assetId).

Read the documentation for the information that is returned by the API here. The Asset Information will be of particular importance.

Run a loop on the server to periodically fetch the information (remember to pcall, as this API can fail), and send the necessary information to the client.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.