Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Hook join

Categories

Parameters

  • id: player id

Info

When a player finished joining a server and is now in-game (loaded the map and received all server data). Use this hook to setup things for the player or to display Lua images, messages etc.

Hook execution order when a player connects/joins:


Note: This will also be executed for bots.

Return Values

none - related action(s) [if there are any] performed by CS2D cannot be altered/omitted

Lua Command Lua Commands