Jump to content


Photo

Why loadUserInventory doesn't return the market_hash_name?

node.js node-steam-tradeoffer-manager

Best Answer Dr. McKay , 02 July 2017 - 11:32 PM

loadUserInventory is deprecated. Use getUserInventoryContents instead.

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 Nacho

Nacho

    Member

  • Member
  • PipPip
  • 21 posts

Posted 02 July 2017 - 06:08 PM

Hello, when I load a user inventory it doesn't return me the market_hash_name. It only gives me the id, assetid, appid, contextid and amount.

 

Thank you!



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,140 posts

Posted 02 July 2017 - 07:53 PM

Because you haven't set a language.



#3 Nacho

Nacho

    Member

  • Member
  • PipPip
  • 21 posts

Posted 02 July 2017 - 08:21 PM

Because you haven't set a language.

Yes, I did it

 

const manager = new TradeOfferManager({
    steam: client,
    domain: 'localhost',
    language: 'en',
    pollInterval: 10000
});


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,140 posts

Posted 02 July 2017 - 08:22 PM

Show your code.



#5 Nacho

Nacho

    Member

  • Member
  • PipPip
  • 21 posts

Posted 02 July 2017 - 09:02 PM

Show your code.

  manager.loadUserInventory(steamID, 730, 2, true, (err, theirInv) => {
  if (err) {
    console.log(err);
  } 
  else {
  ...

Then I stringify because I need to save it on a JSON, in the .JSON file I saw that market_hash_name didn't appeared.



#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,140 posts

Posted 02 July 2017 - 11:32 PM   Best Answer

loadUserInventory is deprecated. Use getUserInventoryContents instead.


  • Nacho likes this





Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users