Hey, I'm currently trying to use the ItemCustomizationNotification event to catch any result while adding an item to a storage unit. Just like the example given in GitHub repository, my code looks like this:
const addItemToCasket = (casketId, itemId) => {
console.log("trying to add an item to a casket");
console.log("casket: " + casketId + " | itemId " + itemId);
csgo.addToCasket(casketId, itemId);
csgo.on('ItemCustomizationNotification', (itemIds, notificationType) => {
console.log("notification received " + notificationType)
if (notificationType == GlobalOffensive.ItemCustomizationNotification.CasketInvFull) {
console.log('Storage unit ' + itemIds[0] + ' is full');
}
if (notificationType == GlobalOffensive.ItemCustomizationNotification.CasketAdded) {
console.log('Item added to storage unit');
}
});
}
Both console logs are executed, and the item is transfered to the designated casket when I checked in game. But the event does not get caught. Is there anything I'm missing? The 'connectedToGC' event when logging in is working perfectly fine.