-
Posts
2 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
bauernknechty's Achievements
-
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?
-
bauernknechty started following CSGO ItemCustomizationNotification event
-
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.