generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: This makes no sense..

Previous Thread :: Next Thread 
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
09 Jul 2015 03:44 PM
Output?

Also why not just use MarketplaceService?
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
09 Jul 2015 03:48 PM
http://wiki.roblox.com/index.php?title=GetProductInfo
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
09 Jul 2015 03:50 PM
Then that's the API's fault.
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
09 Jul 2015 03:57 PM
This is unsolvable? There is no way to bypass it?
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
09 Jul 2015 03:58 PM
You could use getproductinfo if the json returns the ID
Report Abuse
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
09 Jul 2015 04:19 PM
Can I do something like this?

'TextLabel.Text = hatData["##ID##"].name'
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image