PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetDeveloperProductsAsync

Returns a Pages object which contains information for all of the current game’s developer products.

Returns

Return Type Summary

Code Samples


MarketplaceService:GetDeveloperProductsAsync

The below example would print the name, price, ID, description and icon AssetId for all of the developer products which belong to the current game. It will not work in solo mode unless you set the place’s PlaceId using /DataModel/SetPlaceIdSetPlaceId in the command bar.

local developerProducts = game:GetService("MarketplaceService"):GetDeveloperProductsAsync():GetCurrentPage()

for _, developerProduct in pairs(developerProducts) do
    for field, value in pairs(developerProduct) do
        print(field .. ": " .. value)
    end
    print(" ")
end