Skip to content

concommand.callback

Andrew McWatters edited this page Jun 11, 2016 · 18 revisions

concommand:callback()

Parameters

**Usage:** `function( concommand, player, command, argString, argTable )`
Name Type Description
concommand concommand Concommand object
player player Player who ran the console command
argString string Argument string
argTable table Argument table

Example

concommand( "connect", "Connects to a server",
	function( _, _, _, argS, argT )
		if ( argT[ 1 ] == nil ) then
			_G.print( "connect <address>" )
			return
		end

		connect( argS )
	end
)

See Also

Clone this wiki locally