press a button to switch to a certain gun

I’m not giving any ideas on the swep im making (its a secret) but this kinda gives something out, but who cares. Anyways, if i were to press right click+R to change to a certain weapon, how would i do it?


Assuming this this is serverside, of course.

will that do it for a weapon that you dont already have? What about the right click.

No you’ll need the weapon but you could just run a command to give the weapon first.

If your on about SWEP secondary fire then yeh sure why not.

Use this,
and use the key IN_ATTACK2