Skip to content
On this page

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 ​

NameType
altObject
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 ​

NameType
cmdNamestring
...argsstring[]

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 ​

NameType
cmdNamestring
callback(...args: string[]) => void

Returns ​

void

Defined in ​

shared/utility/consoleCommander.ts:50

Created by Stuyk | Est. 2020