Nacho Posted July 2, 2017 Report Share Posted July 2, 2017 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! Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 3, 2017 Report Share Posted July 3, 2017 Because you haven't set a language. Quote Link to comment Share on other sites More sharing options...
Nacho Posted July 3, 2017 Author Report Share Posted July 3, 2017 Because you haven't set a language.Yes, I did it const manager = new TradeOfferManager({ steam: client, domain: 'localhost', language: 'en', pollInterval: 10000 }); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 3, 2017 Report Share Posted July 3, 2017 Show your code. Quote Link to comment Share on other sites More sharing options...
Nacho Posted July 3, 2017 Author Report Share Posted July 3, 2017 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. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 3, 2017 Report Share Posted July 3, 2017 loadUserInventory is deprecated. Use getUserInventoryContents instead. Nacho 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.