Jump to content


Photo
Question

Load Inventory "undefined" on console.

node.js node-steam-tradeoffer-manager

  • Please log in to reply
3 replies to this topic

#1 TheVillagerZ

TheVillagerZ

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 21 January 2019 - 06:09 PM

I write the code so when the bot log on the account it gives me the info of the inventory ( I think i did that xd)

 

manager.loadInventory(753, 3, true, (err, inventory) => {
console.log(inventory);
})
 
When i open the bot the console says
 
loged on
undefined
 
 
Help ?


#2 SnaBe

SnaBe

    Member

  • Member
  • PipPip
  • 25 posts
  • LocationDenmark

Posted 22 January 2019 - 08:45 AM

The contextid for Steam should be 6 and not 3. 

manager.getInventoryContents(753, 6, true, (err, inventory) => {
  console.log(inventory);
});

Edited by SnaBe, 22 January 2019 - 08:54 AM.


#3 TheVillagerZ

TheVillagerZ

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 24 January 2019 - 12:55 AM

Still happening



#4 SnaBe

SnaBe

    Member

  • Member
  • PipPip
  • 25 posts
  • LocationDenmark

Posted 24 January 2019 - 02:18 AM

Can you post the full code?







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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users