@altv/types-client
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -103,4 +103,6 @@ declare module "alt-client" { | ||
* This handling applies to particular vehicle instance, as opposed to the {@link HandlingData}. | ||
* | ||
* | ||
* @remarks Changes will be reflected only on a particular instance of the vehicle. On creation, model handling will be used as a base and changed properties will be added on top of it. | ||
* | ||
* @beta | ||
*/ | ||
@@ -634,4 +636,13 @@ export interface IVehicleHandling { | ||
* Initializes a new instance of the {@link HandlingData} class that can modify handling properties for the specified handling name. | ||
* | ||
* @beta | ||
*/ | ||
public static getForHandlingName(handlingHash: number): HandlingData; | ||
/** | ||
* Initializes a new instance of the {@link HandlingData} class that can modify handling properties for the specified handling name. | ||
* | ||
* @deprecated See {@link getForHandlingName}. | ||
*/ | ||
public static getForModelName(handlingHash: number): HandlingData; | ||
} | ||
@@ -952,3 +963,3 @@ | ||
*/ | ||
export function on<S extends string>(event: Exclude<S, keyof IClientEvent>, listener: (...args: any[]) => void): void; | ||
export function on<S extends string>(event: Exclude<S, keyof IClientEvent>, listener: (...args: any[]) => void | Promise<void>): void; | ||
@@ -970,15 +981,15 @@ /** | ||
/** | ||
* Output is saved to screenshots folder in root directory. | ||
* The output is returned as a string. | ||
* | ||
* @param stem Filename without extension. | ||
* @return Return is dependent on the success of the operation. | ||
*/ | ||
export function takeScreenshot(stem: string): Promise<boolean>; | ||
export function takeScreenshot(): Promise<string>; | ||
/** | ||
* Output is returned as string. | ||
* The output is returned as a string. | ||
* | ||
* @return Return is dependent on the success of the operation. | ||
* @remarks This only takes a screenshot of the raw GTA:V window. WebViews, game overlays etc. won't be captured. | ||
*/ | ||
export function takeScreenshotBase64(): Promise<string>; | ||
export function takeScreenshotGameOnly(): Promise<string>; | ||
@@ -1010,2 +1021,12 @@ /** | ||
/** | ||
* Sets the rotation velocity for the specified entity. | ||
* | ||
* @param scriptID The script id of the entity. | ||
* @param x The rotation velocity on the X axis. | ||
* @param y The rotation velocity on the Y axis. | ||
* @param z The rotation velocity on the Z axis. | ||
*/ | ||
export function setRotationVelocity(scriptID: number, x: number, y: number, z: number): void; | ||
/** | ||
* Sets a statistic to desired value. | ||
@@ -1012,0 +1033,0 @@ * |
{ | ||
"name": "@altv/types-client", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "This package contains types definitions for alt:V client-side module.", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32104
894