feat(TabVehicle): Fixed personal bike not being seen as personal vehicle
This commit is contained in:
parent
1f56626a3b
commit
7ad9553dfc
@ -22,9 +22,10 @@ namespace big
|
|||||||
QUEUE_JOB_BEGIN_CLAUSE()
|
QUEUE_JOB_BEGIN_CLAUSE()
|
||||||
{
|
{
|
||||||
Vector3 location;
|
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...");
|
if (veh == 0) return notify::above_map("Invalid vehicle handle...");
|
||||||
|
|
||||||
location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
|
location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
|
||||||
@ -33,7 +34,6 @@ namespace big
|
|||||||
}QUEUE_JOB_END_CLAUSE
|
}QUEUE_JOB_END_CLAUSE
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
|
||||||
if (ImGui::Button("Repair"))
|
if (ImGui::Button("Repair"))
|
||||||
{
|
{
|
||||||
QUEUE_JOB_BEGIN_CLAUSE()
|
QUEUE_JOB_BEGIN_CLAUSE()
|
||||||
@ -43,6 +43,7 @@ namespace big
|
|||||||
vehicle::repair(veh);
|
vehicle::repair(veh);
|
||||||
}QUEUE_JOB_END_CLAUSE
|
}QUEUE_JOB_END_CLAUSE
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
|
||||||
if (ImGui::Button("Handling"))
|
if (ImGui::Button("Handling"))
|
||||||
g.window.handling = true;
|
g.window.handling = true;
|
||||||
|
Reference in New Issue
Block a user