XPLMSetUsersAircraft
XPLM_API void XPLMSetUsersAircraft(
const char * inAircraftPath);
This routine changes the user’s aircraft. Note that this will reinitialize the user to be on the nearest airport’s first runway. Pass in a full path (hard drive and everything including the .acf extension) to the .acf file.
Use XPLMInitFlight for complete control over initialization.
WARNING: this API takes a full, not relative aicraft path.