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

NET_FAKELOSS

CS:GO

This command will simulate packet loss on the specified percentage of packets (i.e. 50% would drop 50% of packets).

Syntax
net_fakeloss [Percentage]

Description

This command will simulate packet loss on the specified percentage of packets (i.e. 50% would drop 50% of packets).

How To Use net_fakeloss

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter net_fakeloss [Percentage], 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

net_fakeloss [Percentage]
Percentage The percentage of packets to drop (to simulate packet loss). 20 = 20%.