Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Category: all (79)

Lua Hook parse

Categories

Parameters

  • text: text/commands to parse

Info

Whenever a command is parsed at the server (console/binds/rcon).

Attention: This hook is only triggered when the server itself is parsing commands (either directly or with rcon). You can't handle client parsing with hooks.

Return Values

  • 0: proceed normally
  • 1: normal parsing, ignore unknown cmds
  • 2: skip CS2D parsing

Lua Command Lua Commands