Lua Events/OnServerCommand

From PZwiki
< Lua Events
Revision as of 21:24, 23 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnServerCommand to Lua Events/OnServerCommand: Remove Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



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