Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Category: debug (27)
debugCategories
Parameters
- debug (0-2): debug off (0), simple (1), profiler (2)
Info
Changes the debug mode. There are 3 different modes:
- 0 - debug disabled: No debug info. Recommended for normal playing.
- 1 - debug mode: Shows additional debug messages and the FPS (frames per second) in the top left corner
- 2 - profile mode: Shows detailed performance information
Note: Mode 0 is recommended for playing. Other modes might have a negative impact on performance.
Note: If you have technical problems you can try mode 1 or 2 to find out what's wrong. You might get additional info with these modes.
Lua Hooks
Lua Commands
Categories
Parameters
- debug (0-2): debug off (0), simple (1), profiler (2)
Info
Changes the debug mode. There are 3 different modes:
- 0 - debug disabled: No debug info. Recommended for normal playing.
- 1 - debug mode: Shows additional debug messages and the FPS (frames per second) in the top left corner
- 2 - profile mode: Shows detailed performance information
Note: Mode 0 is recommended for playing. Other modes might have a negative impact on performance.
Note: If you have technical problems you can try mode 1 or 2 to find out what's wrong. You might get additional info with these modes.