Jump to content
McKay Development

node-globaloffensive sticker name


Recommended Posts

Posted

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
}

 

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...