Equivalent of GM:ScoreboardShow() for weapon selection?

Hello. I’ve been trying to get my own weapon selection. I know how to do it, but I don’t know what function is called when you scroll up/down to switch weapons. I have my hud hiding


"CHudWeaponSelection"

, but other than that i can’t get it to draw.

PlayerBindPress + mwheelup + mwheeldown

Chessnut is more or less correct - you need to monitor PlayerBindPress for a few commands:

invprev and invnext ( mwheelup, mwheeldown ) are for when the player is scrolling through their items.
slot0 through slot10 are for the number keys on the top of the keyboard.

And then you select the weapon with:

RunConsoleCommand( “use”, “weapon_pistol” )