From 7ad9553dfc61e656806ff1594dcdd9ef436f3975 Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 10 Aug 2021 23:11:45 +0200 Subject: [PATCH] feat(TabVehicle): Fixed personal bike not being seen as personal vehicle --- BigBaseV2/src/gui/window/main/tab_vehicle.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BigBaseV2/src/gui/window/main/tab_vehicle.cpp b/BigBaseV2/src/gui/window/main/tab_vehicle.cpp index d7b4c5f5..5a78c18b 100644 --- a/BigBaseV2/src/gui/window/main/tab_vehicle.cpp +++ b/BigBaseV2/src/gui/window/main/tab_vehicle.cpp @@ -22,9 +22,10 @@ namespace big QUEUE_JOB_BEGIN_CLAUSE() { Vector3 location; - if (!blip::get_blip_location(location, 225, 0)) return notify::above_map("No personal vehicle found, was it destroyed?"); - Vehicle veh = vehicle::get_closest_to_location(location, 5.f); + if (!blip::get_blip_location(location, 225, 0) && !blip::get_blip_location(location, 226, 0)) return notify::above_map("No personal vehicle found, was it destroyed?"); + + Vehicle veh = vehicle::get_closest_to_location(location, 2.f); if (veh == 0) return notify::above_map("Invalid vehicle handle..."); location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true); @@ -33,7 +34,6 @@ namespace big }QUEUE_JOB_END_CLAUSE } - ImGui::SameLine(); if (ImGui::Button("Repair")) { QUEUE_JOB_BEGIN_CLAUSE() @@ -43,6 +43,7 @@ namespace big vehicle::repair(veh); }QUEUE_JOB_END_CLAUSE } + ImGui::SameLine(); if (ImGui::Button("Handling")) g.window.handling = true;