lastinv 🔫 Weapon & Shooting Multiplayer Safe
Command Details
Description Switch to last used weapon (quick-switch)
Category 🔫 Weapon & Shooting
sv_cheats Not required
Syntax
lastinv <value> How to Use
1
Open the developer console by pressing the tilde key ~. If it does not open, enable it in Settings → Game → Enable Developer Console. See our Config Guide for full setup instructions.
2
Type lastinv into the console and press Enter.
3
Switch to last used weapon (quick-switch). This command works in all game modes including competitive.
Frequently Asked Questions
What does lastinv do in CS2?
Switch to last used weapon (quick-switch)
Does lastinv require sv_cheats?
No, lastinv does not require sv_cheats. You can use it freely in any game mode, including competitive matchmaking and official Valve servers.
Can I use lastinv in competitive?
Yes, lastinv works in competitive matchmaking and all other game modes. It is a client-side command that does not require sv_cheats.