select custom item categories on the map

Hi guys.

I have been trying to select custom item categories on the map using Yanfly Item Categories plugin (see link below)

So I created new categories like "Items, Category:Book, Weapons, Armors, KeyItems"

I wanted to use scriptcall $gameMessage.setItemChoice(var ID, n) to call "Category:Book" on Map. As you know, the editor has only 4 options (regular item, Key item, hidden item A and 😎.

Is there a way to call custom item categories or notetag using $gameMessage.setItemChoice(var ID, n) or any other script call?

I found this function calling Weapon and Armor can be useful, but how can I modify this function to call notetage ?

Code:
Window_EventItem.prototype.includes = function(item) {
var itypeId = $gameMessage.itemChoiceItypeId();
if (weap == 5){
return DataManager.isWeapon(item);// && item.itypeId === 1;
}else if(weap ==6){
return DataManager.isArmor(item);
}
return DataManager.isItem(item) && item.itypeId === itypeId;
};
Yanfly Item Categories plugin - http://www.yanfly.moe/wiki/Item_Menu_Categories_(YEP)

Any suggestions are welcome

Thanks

Original thread: https://forums.rpgmakerweb.com/threads/select-custom-item-categories-on-the-map.125334/