Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: all (371)

CS2D Command hudtxtalphafade



  • player (1-32): id of a player (or 0 for all)
  • id (0-199): internal text id
  • duration (ms): alpha fade/transition effect in milliseconds
  • alpha (0.0-1.0): new alpha value


Lets a HUD text (specified with id) change its alpha value. The transition will be smooth and will take the given time (duration).

You can let this effect be visible for all players (player=0) or to a certain player only (player=id of this player).

alpha must be a value between 0.0 (invisible) and 1.0 (fully opaque).

Lua Hook Lua Hooks

Lua Command Lua Commands