Lukasz Posted Thursday at 08:44 PM Report Posted Thursday at 08:44 PM Hi Heloo every one I have a question, is there a way to check the names of stickers by their id? { "stickers": [ { "slot": 0, "sticker_id": 4794, "wear": null, "scale": null, "rotation": null, "tint_id": null, "offset_x": null, "offset_y": null, "offset_z": null, "pattern": null }, { "slot": 1, "sticker_id": 4762, "wear": null, "scale": null, "rotation": null, "tint_id": null, "offset_x": null, "offset_y": null, "offset_z": null, "pattern": null }, { "slot": 2, "sticker_id": 4782, "wear": null, "scale": null, "rotation": null, "tint_id": null, "offset_x": null, "offset_y": null, "offset_z": null, "pattern": null }, { "slot": 3, "sticker_id": 4741, "wear": null, "scale": null, "rotation": null, "tint_id": null, "offset_x": null, "offset_y": null, "offset_z": null, "pattern": null } ], "keychains": [], "accountid": null, "itemid": "43163857952", "defindex": 10, "paintindex": 904, "rarity": 3, "quality": 9, "paintwear": 0.2513757348060608, "paintseed": 743, "killeaterscoretype": 0, "killeatervalue": 0, "customname": null, "inventory": 3221225475, "origin": 8, "questid": null, "dropreason": null, "musicindex": null, "entindex": null, "petindex": null } Quote
Dr. McKay Posted Friday at 06:29 AM Report Posted Friday at 06:29 AM You would need to download and parse items_game.txt, look up the sticker by its sticker_id, then fetch your appropriate language file to translate the localization key into an actual name. Quote
Lukasz Posted Friday at 01:29 PM Author Report Posted Friday at 01:29 PM Maybe it ll help someone I need just sticker names and img src after trade don't really need ids, I get them from getReceivedItems([getActions, ]callback) getActions - Optional. If true, then the descriptions of the received items will be loaded from the WebAPI in order to populate the items' actions. Default false. callback - Required. A callback to be invoked when complete. err - An Error object on failure, null on success items - An array of EconItem objects that you received. v1.19.0 or later is required to use getActions. Can be called on an accepted offer to retrieve item data about the items you received, including names, descriptions, and new assetids. Will not include any actions (e.g. the CS:GO inspect link) unless getActions is true. Quote
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.