Added check for IS_VEHICLE_DOOR_DAMAGED in keep_vehicle_repaired. (#1933)

Fixed Selected Teleport not showing up in hotkeys menu.
Added Yim's Vehicle cleanup code from the halted PR.
This commit is contained in:
gir489
2023-08-07 04:16:08 -04:00
committed by GitHub
parent 32472ff524
commit e87931bf60
8 changed files with 32 additions and 11 deletions

View File

@ -149,6 +149,8 @@ namespace big
vehicle::teleport_into_vehicle(veh);
}
}
// cleanup clones
ENTITY::SET_ENTITY_AS_NO_LONGER_NEEDED(&veh);
}
else
{

View File

@ -151,7 +151,7 @@ namespace big
vehicle::get_spawn_location(g.spawn_vehicle.spawn_inside, vehicle.m_hash);
const auto spawn_heading = ENTITY::GET_ENTITY_HEADING(self::ped);
const auto veh = vehicle::spawn(vehicle.m_hash, spawn_location, spawn_heading);
auto veh = vehicle::spawn(vehicle.m_hash, spawn_location, spawn_heading);
if (veh == 0)
{
@ -173,6 +173,7 @@ namespace big
}
g_model_preview_service->stop_preview();
ENTITY::SET_ENTITY_AS_NO_LONGER_NEEDED(&veh);
});
ImGui::PopID();