Commands/Lua

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

CS2D Command CS2D Console Commands

Category: server (201)

CS2D Command hudtxtclear

Categories

Parameters

  • player (0-32): id of a player or 0 for all

Info

Clears all HUD texts created with hudtxt or hudtxt2.
Can either be executed for a specific player only (ID 1-32) or for all players by setting player to 0!

Clearing HUD texts is equal to setting all to empty strings. They will become invisible instantly and it will also remove all applied effects (hudtxtmove/hudtxtalphafade/hudtxtcolorfade).

Note: If you want to only clear some HUD texts you can use hudtxt or hudtxt2.

Note: This command is much more efficient and causes much less traffic than calling hudtxt or hudtxt2 multiple times to clear multiple texts!

Lua Hook Lua Hooks

Lua Command Lua Commands