bauernknechty Posted January 31, 2021 Report Posted January 31, 2021 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. Quote
Dr. McKay Posted February 1, 2021 Report Posted February 1, 2021 It's itemCustomizationNotification, with a lowercase i. Quote
bauernknechty Posted February 2, 2021 Author Report Posted February 2, 2021 17 hours ago, Dr. McKay said: It's itemCustomizationNotification, with a lowercase i. Thanks for your reply. I tried that, but that didn't work aswell. The code from above hasn't changed, just made the change about itemCustomizationNotification. May there be anything else that I'm missing? Quote
Dr. McKay Posted February 2, 2021 Report Posted February 2, 2021 I don't see any reason why that wouldn't work. 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.