RemoveCommandHandler: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
This function removes a command handler, that is one that has been added using addCommandHandler.  
This function removes a command handler, that is one that has been added using addCommandHandler. This function can only remove command handlers that were added by the [[virtual machine]] that it is called in.


==Syntax==  
==Syntax==  

Revision as of 09:43, 26 June 2006

This function removes a command handler, that is one that has been added using addCommandHandler. This function can only remove command handlers that were added by the virtual machine that it is called in.

Syntax

bool removeCommandHandler ( string commandName )              

Required Arguments

  • key: description

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • argumentName2: descriptiona
  • argumentName3: description

Returns

Returns true if blah, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Template:Server Functions