
Coyeks
-
Posts
4 -
Joined
-
Last visited
Reputation Activity
-
Coyeks reacted to Dr. McKay in How to only accept CSGO keys in 'newOffer'
offer.itemsToReceive contains an array of the items you'd receive if you accepted this offer. For each item in this array, check appid to make sure it's CS:GO and name to make sure it's a key. For example:
var allItemsAreGood = offer.itemsToReceive.every(function(item) { return item.appid == 730 && item.name == "CS:GO Case Key"; });