closeonbuy Command Details
0 Syntax
closeonbuy 0 How to Use
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.
Type closeonbuy 0 into the console and press Enter.
Close buy menu after purchasing (0=stay open). This command works in all game modes including competitive. The default value is 0.
Frequently Asked Questions
What does closeonbuy do in CS2?
Close buy menu after purchasing (0=stay open)
What is the default value for closeonbuy?
The default value for closeonbuy is 0. You can reset it to this value at any time by typing "closeonbuy 0" in the console.
Does closeonbuy require sv_cheats?
No, closeonbuy does not require sv_cheats. You can use it freely in any game mode, including competitive matchmaking and official Valve servers.
Can I use closeonbuy in competitive?
Yes, closeonbuy works in competitive matchmaking and all other game modes. It is a client-side command that does not require sv_cheats.