How do I get a gamepass image?

It seems there is no way to get the image of a gamepass ever since they moved to the new system. I tried using the good old image endpoints to no prevail (http://www.roblox.com/Thumbs/Asset.ashx?Width=110&Height=110&AssetID=) and looked around in MarketplaceService, but could find nothing that gives me this info.

I would really like to get the live gamepass image somehow, but I guess that’s no longer possible?

6 Likes

GetProductInfo(gamepassId, Enum.InfoType.GamePass).IconImageAssetId

22 Likes

Thank you! Somehow I missed that.

3 Likes

It now works for Gamepasses?

https://gyazo.com/cc1fa3b895354f3a38fc2327ce3b7060

Does it work for Badges too?

Yes, works for gamepasses. Documentation is outdated.

You would have to test for badges.

I have tested and “No” it does not work for Badges

But

For Badges you use

BadgeService:GetBadgeInfoAsync(ID).IconImageId

I forgot about that somehow…

3 Likes