diff --git a/BigBaseV2/src/gui/window/handling/handling_general.cpp b/BigBaseV2/src/gui/window/handling/handling_general.cpp index cbcdcc5a..fb7c2e39 100644 --- a/BigBaseV2/src/gui/window/handling/handling_general.cpp +++ b/BigBaseV2/src/gui/window/handling/handling_general.cpp @@ -6,6 +6,13 @@ namespace big { if (ImGui::BeginTabItem("General")) { + if (ImGui::Button("Restore Handling Data")) + { + g_vehicle_service->restore_vehicle(); + } + + ImGui::Separator(); + ImGui::Text("Gravity"); ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f); diff --git a/BigBaseV2/src/gui/window/window_handling.cpp b/BigBaseV2/src/gui/window/window_handling.cpp index 08201a37..ad4b0f10 100644 --- a/BigBaseV2/src/gui/window/window_handling.cpp +++ b/BigBaseV2/src/gui/window/window_handling.cpp @@ -16,6 +16,7 @@ namespace big return; } + g_vehicle_service->attempt_save(); ImGui::BeginTabBar("handling_tabbar"); tab_handling::tab_general();