Sandbox based gamemode, rebind Q-Menu

I want to use the spawn menu button (Q) to show inventory/player stats and such with my custom derma, but I have a few problems.
How do I bind something to use the Q-menu in lua? I know how to bind f1-f4, but that’s it.
I already know how to disable it for everyone except admins. How do I let admins open the menu using their console? but rebind it for everyone (including admins) and bind Q/spawn menu for my own menu?

I’m sorry if it’s hard to follow what I want done, I am not sure how to explain it better.

Thank you, now I’m half way there :slight_smile:

Any idea what function actually opens the menu? I need to add a concommand for that so my admins can access it when it’s disabled.