Lua Events/OnClientCommand

From PZwiki



Event

OnClientCommand

Description

Triggered when the player sends a command to the server.

Parameters

  • String The name of the module for this client command.
  • String The text of the actual client command.
  • IsoPlayer The player who initiated the client command.
  • KahluaTable The arguments of the client command.

Examples

local function OnClientCommand(module, command, player, args)
	-- Your code here
end

Events.OnClientCommand.Add(OnClientCommand)

See also