@ianlucas/cs2-lib
    Preparing search index...

    Class CS2Inventory

    Index

    Constructors

    Properties

    options: Readonly<CS2InventoryOptions>

    Methods

    • Parameters

      • nameTagUid: number
      • id: number
      • nameTag: string

      Returns this

    • Adds a new item id to the inventory with the sticker item stickerUid applied to its first slot, consuming the sticker. The optional attributes set that sticker's schema (its physical CS2EconomyItem.getStickerSchemaCount anchor), x/y offset, rotation, and wear. All are validated against the new item before anything mutates, so an invalid value throws without consuming the sticker.

      Parameters

      Returns this

    • Parameters

      • targetUid: number
      • patchUid: number
      • slot: number

      Returns this

    • Applies the sticker item stickerUid onto targetUid, appending it to the stack. The optional attributes set the new sticker's schema (its physical CS2EconomyItem.getStickerSchemaCount anchor — defaults to the next free anchor), x/y offset, rotation, and wear. All are validated against the target before anything mutates, so an invalid value throws without consuming the sticker.

      Parameters

      Returns this

    • Parameters

      • storageUid: number
      • size: number = 1

      Returns boolean

    • Parameters

      • storageUid: number
      • size: number = 1

      Returns boolean

    • Parameters

      • storageUid: number
      • depositUids: number[]

      Returns this

    • Parameters

      • storageUid: number

      Returns number

    • Parameters

      • targetUid: number

      Returns this

    • Parameters

      • storageUid: number

      Returns boolean

    • Parameters

      • storageUid: number

      Returns boolean

    • Parameters

      • targetUid: number
      • fromIndex: number
      • toIndex: number

      Returns this

    • Parameters

      • uid: number

      Returns this

    • Parameters

      • targetUid: number
      • slot: number

      Returns this

    • Parameters

      • targetUid: number
      • index: number

      Returns this

    • Parameters

      • nameTagUid: number
      • renameableUid: number
      • OptionalnameTag: string

      Returns this

    • Parameters

      • storageUid: number
      • nameTag: string

      Returns this

    • Parameters

      • storageUid: number
      • retrieveUids: number[]

      Returns this

    • Parameters

      • targetUid: number
      • index: number
      • Optionalwear: number

      Returns this

    • Parameters

      • statTrakSwapToolUid: number
      • fromUid: number
      • toUid: number

      Returns this

    • Parameters

      Returns this