rafael15420 Posted December 16, 2014 Share Posted December 16, 2014 Hello I am new to the community. Can i replace a player clothes CJ ? Link to comment
Threule Posted December 16, 2014 Share Posted December 16, 2014 You can change textures. You can't change models. Someone gave me a script of this: The lua file: (Afro for example) textures = { ["afro"] = 30201, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD(cloth..".txd") engineImportTXD(txd, id) end end addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) I think you can make yourself a meta, but just in case: "Threule" version="1" type="script" /> You can get the IDs from here: https://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs Link to comment
Ahmed Abo-elezz Posted December 16, 2014 Share Posted December 16, 2014 You can change textures. You can't change models. Someone gave me a script of this:The lua file: (Afro for example) textures = { ["afro"] = 30201, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD(cloth..".txd") engineImportTXD(txd, id) end end addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) I think you can make yourself a meta, but just in case: "Threule" version="1" type="script" /> You can get the IDs from here: https://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs and look here also for more ideas only : https://forum.multitheftauto.com/viewtopic.php?f=91&t=38174 Link to comment
rafael15420 Posted December 16, 2014 Author Share Posted December 16, 2014 Threule, did not work, anyway thanks textures = { ["coach"] = 30308, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD(cloth..".txd") engineImportTXD(txd, id) end end addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) "Threule" version="1" type="script" /> Link to comment
Threule Posted December 16, 2014 Share Posted December 16, 2014 (edited) I am asuming you have the txt in the root folder, where both scripts are. Anyway, it works for me (Image in spoiler coz' 2big): Edited December 16, 2014 by Guest Link to comment
rafael15420 Posted December 16, 2014 Author Share Posted December 16, 2014 textures = { ["wcoatblue"] = 30535, } function replaceClothes() for cloth, id in pairs(textures) do local txd = engineLoadTXD(cloth..".txd") engineImportTXD(txd, id) end end addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) "Threule" version="1" type="script" /> Link to comment
Threule Posted December 16, 2014 Share Posted December 16, 2014 It does work for me. Are you sure that txd have a modded skin? Link to comment
rafael15420 Posted December 16, 2014 Author Share Posted December 16, 2014 it's all right Link to comment
Threule Posted December 16, 2014 Share Posted December 16, 2014 Everything seems fine, dont know what the error could be Link to comment
rafael15420 Posted December 16, 2014 Author Share Posted December 16, 2014 Threule, You can upload your files and send me? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now