AthenaShared.utility.consoleCommander.ConsoleCommander ​
shared/utility/consoleCommander.ConsoleCommander
Constructors ​
constructor ​
• new ConsoleCommander()
Methods ​
getCommands ​
Usage
AthenaShared.utility.consoleCommander.ConsoleCommander.Static getCommands(): string[]
Return a list of commands...
Static
Returns ​
string[]
Defined in ​
shared/utility/consoleCommander.ts:61
init ​
Usage
AthenaShared.utility.consoleCommander.ConsoleCommander.Static init(alt): void
Parameters ​
| Name | Type |
|---|---|
alt | Object |
alt.on | (event: string, handler: Function) => any |
Returns ​
void
Defined in ​
shared/utility/consoleCommander.ts:25
invokeCommand ​
Usage
AthenaShared.utility.consoleCommander.ConsoleCommander.Static invokeCommand(cmdName, ...args): void
Allows a console command to be invoked through other means.
Static
Parameters ​
| Name | Type |
|---|---|
cmdName | string |
...args | string[] |
Returns ​
void
Defined in ​
shared/utility/consoleCommander.ts:37
registerConsoleCommand ​
Usage
AthenaShared.utility.consoleCommander.ConsoleCommander.Static registerConsoleCommand(cmdName, callback): void
Register a Server-Side or Client-Side Console Command Depends on the folder you are writing inside of.
Static
Parameters ​
| Name | Type |
|---|---|
cmdName | string |
callback | (...args: string[]) => void |
Returns ​
void
V5 Docs