Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 26 Jan 2015 04:14 PM |
| Is there any possible way for me to get the information from a place just from its ID. If so, how do I do it? I ask because I seen admin Scripts with this function. It would list the name of the place along with the place thumbnail too. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2015 04:15 PM |
| MarketplaceService.GetProductInfo |
|
|
| Report Abuse |
|
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 26 Jan 2015 04:16 PM |
| Really? What does it return? A table? A string? Or something else? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 26 Jan 2015 04:20 PM |
| No, I don't want to know how to print the name of the game I already am in. I want to know how to get the place name of a certain ID. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2015 04:24 PM |
| MarketplaceService:GetProductInfo(Id) |
|
|
| Report Abuse |
|
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 26 Jan 2015 04:26 PM |
| Ok then. Wait, if this function returns a value, wouldn't I need to use the print function to? |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2015 04:28 PM |
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo
You could have just looked it up and figured it out by yourself :/
local Marketplace, AssetId = game:service('MarketplaceService'), 208328683
local Data = Marketplace:GetProductInfo(AssetId)
print(Data.Name) |
|
|
| Report Abuse |
|
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 26 Jan 2015 04:38 PM |
| Even though my problem was solved, I Think most people are just lazy and referred to the wiki because they don't know how to do it themselves. You can argue with me all you want, but at this point it doesn't really matter. Form closed. |
|
|
| Report Abuse |
|
|