diff --git a/client/src/bindings/HandlingData.cpp b/client/src/bindings/HandlingData.cpp index c8b33cd0..e3889417 100644 --- a/client/src/bindings/HandlingData.cpp +++ b/client/src/bindings/HandlingData.cpp @@ -30,7 +30,6 @@ static void GetForHandlingName(const v8::FunctionCallbackInfo& info) V8_RETURN(v8HandlingData.New(isolate->GetEnteredOrMicrotaskContext(), args)); } -/* static void ReloadVehiclePhysics(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT(); @@ -40,7 +39,6 @@ static void ReloadVehiclePhysics(const v8::FunctionCallbackInfo& info V8_RETURN_BOOLEAN(alt::ICore::Instance().ReloadVehiclePhysics(modelHash)); } -*/ static void HandlingNameHashGetter(v8::Local, const v8::PropertyCallbackInfo& info) { @@ -1744,11 +1742,11 @@ static void DamageFlagsSetter(v8::Local, v8::Local val, c extern V8Class v8HandlingData("HandlingData", Constructor, [](v8::Local tpl) { v8::Isolate* isolate = v8::Isolate::GetCurrent(); - + tpl->InstanceTemplate()->SetInternalFieldCount(static_cast(V8Class::InternalFields::COUNT)); V8Helpers::SetStaticMethod(isolate, tpl, "getForHandlingName", &GetForHandlingName); - // V8Helpers::SetStaticMethod(isolate, tpl, "reloadVehiclePhysics", &ReloadVehiclePhysics); + V8Helpers::SetStaticMethod(isolate, tpl, "reloadVehiclePhysics", &ReloadVehiclePhysics); V8Helpers::SetAccessor(isolate, tpl, "handlingNameHash", &HandlingNameHashGetter); V8Helpers::SetAccessor(isolate, tpl, "mass", &MassGetter, &MassSetter); diff --git a/shared/deps/cpp-sdk b/shared/deps/cpp-sdk index 95a2cfad..22e1fdd3 160000 --- a/shared/deps/cpp-sdk +++ b/shared/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 95a2cfadc2ba1de018c8c55c72b21984067b6181 +Subproject commit 22e1fdd37b8e379d04b279161571276cb7bb12da