Hi,
I have a question/problem when it comes to music kits. This is regarding the Global Offensive package.
For all other items, I've found a way through CSGO's complicated items structure to transform the .inventory data into product names, image URL's, etc. However, I'm stuck when it comes to music kits.
An inventory row might look like:
{
attribute: [
{ def_index: 166, value: null, value_bytes: [Object] },
{ def_index: 75, value: null, value_bytes: [Object] }
],
equipped_state: [],
id: 'xxxxx',
account_id: xxxxx,
inventory: 130,
def_index: 1314,
quantity: 1,
level: 1,
quality: 4,
flags: 2,
origin: 2,
custom_name: null,
custom_desc: null,
interior_item: null,
in_use: false,
style: null,
original_id: null,
rarity: 3,
position: 130,
tradable_after: '2022-01-22T08:00:00.000Z'
}
When I lookup the def_index in the items_game.txt folder from the game files, all I find is the following:
"1314"
{
"name" "musickit"
"prefab" "musickit_prefab"
}
For all other items, there's some additional details in the inventory result or the items_game.txt result that can help me pinpoint which item I'm dealing with. Not when it comes to music kits. My question is, is the inventory result exhaustive? Is there something I'm missing? I suppose I could call "inspectItem" to gain access to the "musicindex" return value for each music kit in the inventory but I would really prefer not to do so.
Any help would be much appreciated.