Jump to content
McKay Development

CSGO ItemCustomizationNotification event


Recommended Posts

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.

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...