mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(addCommand): longString (#597)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user