Hello. I'm writing a cooking class for my server and I have the cooking part working fine, except it just automatically cooks all the food. I have the frames set up, but I can't figure out how to get the input from the user. For example, when they right click "shrimp" and the menu "cook 1, cook 5, cook x, cook all" comes up, when they click one it just stays there and doesn't do anything. Can anyone help me figure out how to get that input?

here is a picture if my explanation wasn't clear:


now I need to figure out how to get the input when the user right clicks and selects "get x".

Thanks