Opening a dmenu when player right clicks?

Hello everyone!

Im currently trying to work out how i would go about opening a dmenu where a player right clicks in my derma.

I’ve checked the wiki but cant find a way to check if a player is right clicking in my derma, i then wish to open a dmenu with a few options for the selected line in DListView, All of that is available on the wiki except for checking for right clicks.

Someone clear this up for me please?

Thanks in advance!

Did you try using;


myPanel.DoRightClick = function()

That would only work for panels that implement DoRightClick. ( DLabel, DButton, and children )

You should be using this: