Initial commit — Southwest Roleplay FiveM
This commit is contained in:
18
src/server/core/commands/base.command.ts
Normal file
18
src/server/core/commands/base.command.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { CommandOptions } from './options';
|
||||
import { ObjectLiteral } from 'typeorm';
|
||||
|
||||
export interface BaseCommand {
|
||||
$options: CommandOptions<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
run(
|
||||
player: PlayerMp,
|
||||
params?:
|
||||
| {
|
||||
[key: string]: string | number | null | PlayerMp | VehicleMp;
|
||||
}
|
||||
| ObjectLiteral,
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
export class BaseCommand implements BaseCommand {}
|
||||
Reference in New Issue
Block a user