Gamepass images

Since gamepasses aren’t assets anymore, I can’t use MarketplaceService:GetProductInfo to display images of gamepasses in my GUI shop in-game. How can I get images (and maybe even other info) about gamepasses to do this?

1 Like

You can still use GetProductInfo(), you just have to include Enum.InfoType.GamePass

local info = game:GetService('MarketplaceService'):GetProductInfo(GamePassId,Enum.InfoType.GamePass)
local Image = 'rbxassetid://'..info['IconImageAssetId']

Hope that clears things up. :slight_smile:

2 Likes

This doesn’t work for new game passes last I checked, IconImageAssetId ends up being 0.

Hmph… I tested with a game pass I just uploaded a bit ago and it worked? Very strange… When was the last time you checked?

May 25th.

http://api.roblox.com/marketplace/game-pass-product-info?gamePassId=4497433

IconImageAssetId has returned and works fine in studio.

1 Like

I wasn’t able to do this either, as an alternative I had to upload them as decals and display them in my scrolling frame UI instead.

Yep, thinking that’s what I’m gonna have to do

1 Like

As long as your UI works and allows you to purchase gamepasses while in game, which you can do by making them decals, it should be fine.

1 Like