|
| 09 Jul 2015 03:37 PM |
local raw = HttpService:GetAsync("http://robloxplus.com:2052/inventory?id="..tostring(Player.userId)) local d = HttpService:JSONDecode(raw)
Why can't I get the hat name of an item?
local Hat = d.data.hat local hatData = Hat.data TextLabel.Text = hatData.name |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:44 PM |
Output?
Also why not just use MarketplaceService? |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:46 PM |
| No output. It has to do with the ID. I can't just go like hatData.id.Name. Is there a way to bypass the id? |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:48 PM |
| http://wiki.roblox.com/index.php?title=GetProductInfo |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:49 PM |
| This is different though. It's not for a single item. It's for all the limits the player owns. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:50 PM |
| Then that's the API's fault. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:57 PM |
| This is unsolvable? There is no way to bypass it? |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 03:58 PM |
| You could use getproductinfo if the json returns the ID |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2015 04:19 PM |
Can I do something like this?
'TextLabel.Text = hatData["##ID##"].name' |
|
|
| Report Abuse |
|
|