Lua Events/OnServerCommand

From PZwiki



Event

OnServerCommand

Description

Triggered when a command from the server is being received.

Parameters

  • String The name of the module for this server command.
  • String The text of the actual server command.
  • KahluaTable The list of arguments of the server command.

Examples

local function OnServerCommand(module, command, arguments)
	-- Your code here
end

Events.OnServerCommand.Add(OnServerCommand)

See also