Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@altv/types-client

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altv/types-client - npm Package Compare versions

Comparing version 1.2.1 to 1.3.1

113

index.d.ts

@@ -100,2 +100,89 @@ declare module "alt-client" {

/**
* Vehicle handling, which affects how vehicle responds and reacts to the inputs of a driver.
* 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.
*/
export interface IVehicleHandling {
acceleration: number;
antiRollBarBiasFront: number;
antiRollBarBiasRear: number;
antiRollBarForce: number;
brakeBiasFront: number;
brakeBiasRear: number;
brakeForce: number;
camberStiffnesss: number;
centreOfMassOffset: Vector3;
clutchChangeRateScaleDownShift: number;
clutchChangeRateScaleUpShift: number;
collisionDamageMult: number;
damageFlags: number;
deformationDamageMult: number;
downforceModifier: number;
driveBiasFront: number;
driveInertia: number;
driveMaxFlatVel: number;
engineDamageMult: number;
handBrakeForce: number;
handlingFlags: number;
readonly handlingNameHash: number;
inertiaMultiplier: Vector3;
initialDragCoeff: number;
initialDriveForce: number;
initialDriveGears: number;
initialDriveMaxFlatVel: number;
lowSpeedTractionLossMult: number;
mass: number;
modelFlags: number;
monetaryValue: number;
oilVolume: number;
percentSubmerged: number;
percentSubmergedRatio: number;
petrolTankVolume: number;
rollCentreHeightFront: number;
rollCentreHeightRear: number;
seatOffsetDistX: number;
seatOffsetDistY: number;
seatOffsetDistZ: number;
steeringLock: number;
steeringLockRatio: number;
suspensionBiasFront: number;
suspensionBiasRear: number;
suspensionCompDamp: number;
suspensionForce: number;
suspensionLowerLimit: number;
suspensionRaise: number;
suspensionReboundDamp: number;
suspensionUpperLimit: number;
tractionBiasFront: number;
tractionBiasRear: number;
tractionCurveLateral: number;
tractionCurveLateralRatio: number;
tractionCurveMax: number;
tractionCurveMaxRatio: number;
tractionCurveMin: number;
tractionCurveMinRatio: number;
tractionLossMult: number;
tractionSpringDeltaMax: number;
tractionSpringDeltaMaxRatio: number;
unkFloat1: number;
unkFloat2: number;
unkFloat4: number;
unkFloat5: number;
weaponDamageMult: number;
/**
* Indicates whether vehicle handling was modified.
*
* @returns `true` if vehicle handling was modified; otherwise, `false`.
*/
isModified(): boolean;
/**
* Resets the vehicle handling back to a model handling.
*/
reset(): void;
}
export interface IVector2 {

@@ -115,2 +202,14 @@ readonly x: number;

/**
* Represents the current client version.
*
* @remarks It's a slighty modified semantic versioning specification, which can be matched using this regular expression pattern `^(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))$`.
*/
export const Version: string;
/**
* Represents the current client branch.
*/
export const Branch: string;
export class Vector3 {

@@ -315,2 +414,7 @@ public readonly x: number;

/**
* Vehicle handling, which affects how vehicle responds and reacts to the inputs of a driver.
*/
public handling: IVehicleHandling;
/** Vehicle RPM [0, 1] */

@@ -453,2 +557,8 @@ public readonly rpm: number;

/**
* Vehicle handling, which affects how vehicle responds and reacts to the inputs of a driver.
* This handling applies to all vehicle instances, as opposed to the {@link Vehicle.handling}.
*
* @remarks Changes will be reflected on every vehicle using this particular handling, but might require vehicle recreating for changes to apply properly.
*/
export class HandlingData {

@@ -522,2 +632,5 @@ public acceleration: number;

/**
* Initializes a new instance of the {@link HandlingData} class that can modify handling properties for the specified handling name.
*/
public static getForHandlingName(handlingHash: number): HandlingData;

@@ -524,0 +637,0 @@ }

2

package.json
{
"name": "@altv/types-client",
"version": "1.2.1",
"version": "1.3.1",
"description": "This package contains types definitions for alt:V client-side module.",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc