Getting a CS2 HUD into OBS takes a few minutes with ECOHUD. This is the short version; the full steps are in the guides.
Install ECOHUD for Windows and sign in. In Settings, install the Game State Integration config for CS2, then fully restart the game, because CS2 only reads it at start. The Live page shows "Receiving" when data arrives.
Open the URLs page in ECOHUD, copy the address of the HUD or the overlay scene, and add it in OBS as a Browser source. Set the browser source to 60 fps for the smoothest result.
Create the teams, players and the match, start the game as an observer and switch scenes in OBS as you normally do. The HUD follows the game by itself.
Install the Game State config from Settings and fully restart CS2. The game reads it only when it starts.
60 fps for the smoothest HUD.
Ask in the ECOHUD Discord or read the support page.