Without intending to be facetious, consult Dr Google to find a suitable answer to solve your problem.
I am having difficulty in locating instructions I have recently seen either in this forum or from another YouTube video, on what to do and how to do it, for the question you have asked. So, as an alternative, I did a google search and found many YouTube videos that answer your question. You will need to have a look at several videos as some relate to parts of your question and others relate to different versions of X-Plane.
In the meantime have a look at the following link at https://developer.x-plane.com/2016/11/x-plane-11-all-aircraft-must-live-in-aircraft/
The implication is also implied you apply the same principle to scenery
Should I find the video I will send you the details in a private message/
Hope you find a suitable answer.