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 rcon

Categories

Parameters

  • cmds: received remote control command(s)
  • id: player who sent the cmds (or 0 if player is not on server)
  • ip: IP of cmd sender
  • port: Port of cmd sender

Info

Whenever someone tries to execute commands on the server using the rcon (remote control) functionality. This hook is triggered once per rcon-command call. This means it may contain one or more commands.

Return Values

  • 0: proceed normally (execute RCon commands)
  • 1: don't execute RCon commands

Lua Command Lua Commands