From 4bd5fe5621b1fa8e589ca2a0a80e6b381caea70b Mon Sep 17 00:00:00 2001 From: ViteSpirite Date: Tue, 4 Oct 2022 12:17:59 +0200 Subject: [PATCH] add new vehicle native and property isPositionFrozen --- packages/client/index.d.ts | 189 ++++++++++++++++++++++++++++++++++++- 1 file changed, 188 insertions(+), 1 deletion(-) diff --git a/packages/client/index.d.ts b/packages/client/index.d.ts index 672dd22..b5466b8 100644 --- a/packages/client/index.d.ts +++ b/packages/client/index.d.ts @@ -2139,6 +2139,14 @@ declare interface PedMp extends PedMpBase { ): void; setFaceFeature(index: number, scale: number): void; setAlpha(alphaLevel: number, skin?: boolean): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @returns boolean + */ + isPositionFrozen: boolean; + } declare interface PedMpPool extends EntityMpPool { @@ -2302,6 +2310,14 @@ declare interface PlayerMp extends PedMpBase { ): void; taskVehicleShootAt(target: Handle, p2: number): void; updateTaskSweepAim(entity: Handle): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @returns boolean + */ + isPositionFrozen: boolean; + } declare interface PlayerMpPool extends EntityMpPool { @@ -2660,6 +2676,177 @@ declare interface VehicleMp extends EntityMp { toggleMod(modType: number, toggle: boolean): void; trackVisibility(): void; wasCounterActivated(p0: any): boolean; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @returns boolean + */ + isPositionFrozen: boolean; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @returns number + */ + wheelCount: number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId + * @returns number + */ + getWheelCamber(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setWheelCamber(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * + * @returns number + */ + getWheelTrackWidth(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setWheelTrackWidth(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId + * + * @returns number + */ + getWheelHeight(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setWheelHeight(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId + * + * @returns number + */ + getTyreWidth(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setTyreWidth(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId + * + * @returns number + */ + getTyreRadius(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setTyreRadius(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId + * + * @returns number + */ + getRimRadius(wheelId: number): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params wheelId - use 255 to apply all wheel + * @params value + * + * @returns void + */ + setRimRadius(wheelId: number, value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * + * @returns number + */ + getWheelRadius(): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params value + * + * @returns void + */ + setWheelRadius(value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * + * @returns number + */ + getWheelWidth(): number; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params value + * + * @returns void + */ + setWheelWidth(value: number): void; + + /** + * ⚠️ test branch: 10_test_oct22. + * + * @params height + * + * @returns void + */ + setSuspensionHeight(height: number): void; + } declare interface VehicleMpPool extends EntityMpPool { @@ -3190,4 +3377,4 @@ declare interface Mp { Vector3: typeof Vector3; } -declare const mp: Mp; +declare const mp: Mp; \ No newline at end of file