Go to the BP_PlayerInventory and create a new function called RepairItemInWeaponSlot, then add a new input called WeaponSlotID and set its type to S_WeaponSlotID then open the function and copy the image below.

Next go to the CoreInventory collapsed node and create a new Custom Event, name it ServerRepairWeaponItem and add a new input called WeaponSlotID and set its type to S_WeaponSlotID and set its Replicates option to RunOnServer and tick on Reliable then copy the image below.

Next open the BP_ItemOptionsMenu and the BP_WeaponOptionsMenu and copy the video below.

Then go to the BP_WeaponOptionsMenu BeginPlay collapsed node and add the code shown in the image below.

Then copy the video and image below.