bauernknechty Posted January 31, 2021 Report Share 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 1, 2021 Report Share Posted February 1, 2021 It's itemCustomizationNotification, with a lowercase i. Quote Link to comment Share on other sites More sharing options...
bauernknechty Posted February 2, 2021 Author Report Share 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 2, 2021 Report Share Posted February 2, 2021 I don't see any reason why that wouldn't work. Quote Link to comment Share on other sites More sharing options...
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.