Making an NPC/Entity have a menu when hitting "use" on them?

Hello everyone, I’m really new to coding and was wondering if someone could tell me how to allow an NPC/Entity to have a menu when you use it. Thank you all so much :smiley:

Wrong section