Interfaces
ICommandService
Responsible for the global "fivepd" command.
Methods
RegisterCommand
Register a command under "/fivepd".
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | Name of the command. |
| function | Action<int, List<object>> | The method that'll be invoked upon entering the command. |
| canInvoke | Func<bool> | The command's function will only be invoked if this method returns true. |
Returns
| Name | Type |
|---|---|
| Command | The created command. |