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