string txd = string(patch) + "\\models\\123.txd";
RwTexDictionary* txd = CFileLoader::LoadTexDictionary(txd.c_str());
TestTexture = RwTexDictionaryFindNamedTexture(txd, "TestTexture2");
An SDK for developing ASI/CLEO plugins for GTA San Andreas, GTA Vice City and GTA III - DK22Pac/plugin-sdk
github.com