Create button for get item to inventory

Hello,
i want create a buttom to get a item (for exemple a pickaxe) in the player inventory.
i have create a menu and 2 buttom.
The first buttom is for close my menu and is work.
for The second buttom i want to click and get item to the player inventory

can you help me ?

Best regard

Hey mate!

I can’t help you unless you provide more information. I can only give a generic solution if you don’t provide more detail.

i have know i will be create a buff for the current actor, i have make it but i don’t know how link my widget button to this buff.

On a BP i have make a menu and on this menu i have create a buttom, i just want click on the buttom and get a item in player inventory

Hey @warneur01! Welcome to the Forums!

What you are looking for here is blueprint communication. You want to have the button call an event in your inventory blueprint that will add your item. Check out this non-Epic affiliated video that give a run down on casting and blueprint interfaces:

I hope the above is the solution you need!

Hey @warneur01!

Checking in, did the above solution solve your problem?