Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the AssetID of a Developer Product?

Asked by 4 years ago

I want to display the Icon of a Dev Product and need the Asset ID to do so. How do i get the Asset ID?

2 answers

Log in to vote
2
Answered by
Smaltin 46
4 years ago
Edited 4 years ago
local productID = 1
local productInfo = MarketplaceService:GetProductInfo(productID, Enum.InfoType.Product)
local icon = productInfo.IconImageAssetId

Use something like that. As I do not know exactly what you are doing, this is pretty generalized. "icon" would be the image id. You may use "http://roblox.com/asset/?id="..icon

(https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/GetProductInfo)

Ad
Log in to vote
0
Answered by 4 years ago
  1. Go into Studio
  2. Insert a Decal into the workspace where you can see it.
  3. For the Decal Image, copy and paste the link of the icon/decal
  4. It will change to the Asset ID Automatically.

Extra: If you would like so download it, once you get the Asset ID paste it behind this "http://roblox.com/asset/?id=" and enter it into your search bar!

0
Remember to say I answered your question, if I did. JayShepherdMD 147 — 4y
0
I actually wanted to find out how to get the asset id of a dev product to directly use the icon of the dev product but thanks anyway MageMasterHD 261 — 4y

Answer this question