Jump to content
McKay Development

Jace

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Jace

  1. I have this line for the intention of selling my card sets for his gems.
     

                               manager.getUserInventoryContents(steamID.getSteamID64(), CONFIG.GEMSFROMINVENTORY, 6, true, (ERR, INV, CURR) => {
                                    if (ERR) {
                                        console.log(ERR);
                                        client.chatMessage(steamID, "Please try later");
                                    } else {
                                        if (!ERR) {
                                            for (let i = 0; i < INV.length; i++) {
                                                if (theirGems < CONFIG.ACCEPTEDGEMS.indexOf(INV.market_hash_name) >= 0) {
                                                   theirGems.push(INV);
                                                }
                                            }
     
    and at the end part I have this 

     

     
                                                                        theirGems.amount = [n];
                                                                        t.addTheirItems(theirGems);
     
     
    instead it gets the other users whole inventory.
×
×
  • Create New...