From 1ca58db8b8ea4dd2138b4c736ad9169f41a39ece Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Thu, 6 Jun 2024 06:57:32 +0200 Subject: [PATCH] fix: Rollback sdk version --- client/src/classes/HandlingData.cpp | 4 +++- deps/cpp-sdk | 2 +- types/client/index.d.ts | 2 +- types/client/package.json | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/classes/HandlingData.cpp b/client/src/classes/HandlingData.cpp index 7d047fc93..506b59930 100644 --- a/client/src/classes/HandlingData.cpp +++ b/client/src/classes/HandlingData.cpp @@ -1391,6 +1391,7 @@ static void Get(js::FunctionContext& ctx) ctx.Return(cache.GetOrCreate(ctx.GetResource(), modelHash)); } +/* static void ReloadVehiclePhysics(js::FunctionContext& ctx) { if (!ctx.CheckArgCount(1)) return; @@ -1400,6 +1401,7 @@ static void ReloadVehiclePhysics(js::FunctionContext& ctx) ctx.Return(alt::ICore::Instance().ReloadVehiclePhysics(modelHash)); } +*/ // clang-format off extern js::Class handlingDataClass("HandlingData", [](js::ClassTemplate& tpl) @@ -1472,5 +1474,5 @@ extern js::Class handlingDataClass("HandlingData", [](js::ClassTemplate& tpl) tpl.Property("damageFlags", DamageFlagsGetter, DamageFlagsSetter); tpl.StaticFunction("get", Get); - tpl.StaticFunction("reloadVehiclePhysics", ReloadVehiclePhysics); + // tpl.StaticFunction("reloadVehiclePhysics", ReloadVehiclePhysics); }, true); diff --git a/deps/cpp-sdk b/deps/cpp-sdk index 22e1fdd37..95a2cfadc 160000 --- a/deps/cpp-sdk +++ b/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 22e1fdd37b8e379d04b279161571276cb7bb12da +Subproject commit 95a2cfadc2ba1de018c8c55c72b21984067b6181 diff --git a/types/client/index.d.ts b/types/client/index.d.ts index e882ba892..bba941062 100644 --- a/types/client/index.d.ts +++ b/types/client/index.d.ts @@ -507,7 +507,7 @@ declare module "@altv/client" { damageFlags: number; static get(modelHash: number | string): HandlingData | undefined; - static reloadVehiclePhysics(modelHash: number | string): boolean; + // static reloadVehiclePhysics(modelHash: number | string): boolean; } export type HttpResponse = { statusCode: number; headers: Readonly>; body: string }; diff --git a/types/client/package.json b/types/client/package.json index 3386fd2c8..d7fcfdd1a 100644 --- a/types/client/package.json +++ b/types/client/package.json @@ -1,6 +1,6 @@ { "name": "@altv/client", - "version": "0.0.36", + "version": "0.0.37", "description": "This package contains the type definitions for the alt:V JS module v2 client types", "types": "index.d.ts", "files": [