viewmodel_offset_x
Moves the gun left (negative) or right (positive).
viewmodel_offset_x 2.5
Examples
viewmodel_offset_x 2.5
How to use it
- Turn on the console under Settings, Game, Enable Developer Console.
- Press the key under Esc to open it.
- Type viewmodel_offset_x followed by a value and press Enter.
- To keep the setting, add the same line to your autoexec.cfg.
FAQ
Does viewmodel_offset_x need sv_cheats?
No. viewmodel_offset_x is not cheat-protected in CS2's command list, so you can use it in any game.
What is the default value of viewmodel_offset_x?
The default is 1, and the game accepts -2 to 2.5. To reset it, type viewmodel_offset_x 1 in the console.
More viewmodel commands
Revision history
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).