GetCommandHandlers: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} __NOTOC__ This function is used to retrieve a list of all the registered command handlers of a given resource (or of all resources). ==Syntax== <section...")
 
Line 14: Line 14:


===Returns===
===Returns===
TODO
Returns a ''table'' containing all the commands of the given resource or a table with subtables containing the command and theResource pointer ( { "command", theResource } )
 
==See Also==
==See Also==
{{Server functions}}
{{Server functions}}

Revision as of 12:57, 9 October 2016

This function is used to retrieve a list of all the registered command handlers of a given resource (or of all resources).

Syntax

Click to collapse [-]
Server
table getElementsByType ( [ resource theResource ] ) 

Optional Arguments

  • theResource: The resource from which you wish to retrieve all command handlers. Or leave it empty to retrieve command handlers of all resources.

Returns

Returns a table containing all the commands of the given resource or a table with subtables containing the command and theResource pointer ( { "command", theResource } )

See Also