feat(addCommand): longString (#597)

This commit is contained in:
BerkieBb
2024-07-01 11:42:21 +10:00
committed by GitHub
parent cdf840fc68
commit 64615a671e
2 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ type OxCommandArguments = Record<string | number, string | number | boolean>;
interface OxCommandParams {
name: string;
help?: string;
paramType?: 'number' | 'playerId' | 'string';
paramType?: 'number' | 'playerId' | 'string' | 'longString';
optional?: boolean;
}
@@ -55,6 +55,10 @@ function parseArguments(
break;
case 'longString':
value = raw.substring(raw.indexOf(arg as string));
break;
default:
value = arg;
break;