Files
fivem/src/server/core/commands/base.command.ts

19 lines
456 B
TypeScript

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 {}