NB! It seems this console command is not compatible with CS2.
Command Profile

CL_COMPASS_ENABLED

CS:GO

This command sets whether or not the compass, in the Danger Zone gamemode, appears at the top of the screen (for your client only).

Syntax
cl_compass_enabled [0 / 1]

Description

This command sets whether or not the compass, in the Danger Zone gamemode, appears at the top of the screen (for your client only).

How To Use cl_compass_enabled

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter cl_compass_enabled [0 / 1], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

cl_compass_enabled [0 / 1]
0 / 1 Set to 0 to disable the compass at the top of screen. Set to 1 to enable (default).