Open the BP_PlayerInventory then open the UseWeaponfromSlot function and add the code in the image below.

Next go to the UseInventoryAction function and add the nodes shown in the image below.

Then open the BP_StaticMasterItem go to the Consume function and add the code in the image below.

Then add the same code to the BP_SkeletalMasterItem like the image below.