βurak Posted April 30, 2024 Posted April 30, 2024 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
Moderators Tut Posted April 30, 2024 Moderators Posted April 30, 2024 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
βurak Posted May 1, 2024 Author Posted May 1, 2024 (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, 2024 by Burak5312
FileEX Posted May 1, 2024 Posted May 1, 2024 (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, 2024 by FileEX
Human Resources Staff Vinyard Posted May 1, 2024 Human Resources Staff Posted May 1, 2024 Closing this as solved.
Recommended Posts