Skip to content

Commit

Permalink
fix: Rollback sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Jun 6, 2024
1 parent 4cfdc1d commit 1ca58db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion client/src/classes/HandlingData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down Expand Up @@ -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);
2 changes: 1 addition & 1 deletion deps/cpp-sdk
Submodule cpp-sdk updated 2 files
+0 −1 ICore.h
+1 −1 types/MValue.h
2 changes: 1 addition & 1 deletion types/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, string>>; body: string };
Expand Down
2 changes: 1 addition & 1 deletion types/client/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 1ca58db

Please sign in to comment.