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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: basic (14)

Lua Command print



  • "text"


Shows "text" in console.
You can start "text" with an RGB color code "©RRRGGGBBB" to change its color. (use a colorpicker to get the values)

Sample 1: Showing a text in console
print("hello, world")

Sample 2: Showing a red text (note that there is no space behind the color tag)
print("©255000000This message is red!")

Note: You can prefix the text with "UTF-8:" to pass encoded UTF-8 strings to this function. Use this tool to encode strings!