Making a console command

So, i’m making a console command that will open my DPanel. So far I have tried this:


concommand.Add( "opencp",function( ply )
		net.Start( "OpenIt" )
		net.Send( v )
	end )

But that did not work. Anyone know what i’m doing wrong?

Here is all my code:


util.AddNetworkString( "OpenIt" )
	hook.Add( "ShowSpare2", "StartitUP", function( v )
		net.Start( "OpenIt" )
		net.Send( v )
	end )

Thats what I use to open the panel.

-Thanks

[editline]19th October 2014[/editline]

Nevermind I found out literally 5 secs after posting this.