βurak Posted April 30 Share Posted April 30 Hello, I am adding texture to the models using engineImportTXD, but when I enter the 8th id, no texture is assigned to this model. What is the reason for this? local txd = engineLoadTXD ("burlova_city.txd") engineImportTXD(txd, 1879,1947,1881,1902,1930,1880,1905,1938) --not working local txd = engineLoadTXD ("burlova_city.txd") engineImportTXD(txd, 1938) --working bug image https://ibb.co/2gJRrJm Link to comment
Administrators Tut Posted April 30 Administrators Share Posted April 30 Does it work with 7 IDs but not with 8 IDs? I am asking because it could just be a scripting limit so maybe it only allows 1 ID in the line Anyhow, I have moved this into the Scripting section so that it can get the best possible reception 1 Link to comment
βurak Posted May 1 Author Share Posted May 1 (edited) 9 hours ago, Tut said: Does it work with 7 IDs but not with 8 IDs? Yes, ids up to 1938 are working, 1938 is not working 9 hours ago, Tut said: I am asking because it could just be a scripting limit so maybe it only allows 1 ID in the line I think the situation is like this, I created this in a second variable and it worked thanks problem solved Edited May 1 by Burak5312 Link to comment
FileEX Posted May 1 Share Posted May 1 (edited) The engineImportTXD function takes only one argument as ID. This is according to the wiki and the source code of this function (https://github.com/multitheftauto/mtasa-blue/blob/1f2c6e75fb71b01f0053f151e766a232ed33692b/Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp#L608) Edited May 1 by FileEX Link to comment
Moderators Vinyard Posted May 1 Moderators Share Posted May 1 Closing this as solved. Link to comment
Recommended Posts