GamerDeMTA Posted March 15, 2013 Share Posted March 15, 2013 I want to replace PED Textures But... for freeroam but how to do? I don't know the name of the TXD's. Link to comment
DNL291 Posted March 15, 2013 Share Posted March 15, 2013 addEventHandler( "onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("txdName.txd") engineImportTXD(txd, skinID) dff = engineLoadDFF("dffName.dff", skinID) engineReplaceModel(dff, skinID) end ) <meta> <script src="script.lua" type="client" /> <file src="txdName.txd" /> <file src="dffName.dff" /> </meta> Replace "txdName.txd" and "dffName.dff" to the name of your TXD skin and DFF skin name, respectively. And the script name in meta.xml. Link to comment
Castillo Posted March 15, 2013 Share Posted March 15, 2013 You can also use this resource: https://community.multitheftauto.com/in ... ls&id=3016 Link to comment
GamerDeMTA Posted March 16, 2013 Author Share Posted March 16, 2013 addEventHandler( "onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("txdName.txd") engineImportTXD(txd, skinID) dff = engineLoadDFF("dffName.dff", skinID) engineReplaceModel(dff, skinID) end ) <meta> <script src="script.lua" type="client" /> <file src="txdName.txd" /> <file src="dffName.dff" /> </meta> Replace "txdName.txd" and "dffName.dff" to the name of your TXD skin and DFF skin name, respectively. And the script name in meta.xml. I used it for replace TRUTH's Skin in my Freeroam and it doesn't work D: I put as skinID "1". Also I put the textures & lua in a folder called "textures" Link to comment
Castillo Posted March 16, 2013 Share Posted March 16, 2013 Post the script and meta.xml. Link to comment
GamerDeMTA Posted March 16, 2013 Author Share Posted March 16, 2013 Okay... THE LUA. addEventHandler( "onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("myskin.txd") engineImportTXD(txd, 1) dff = engineLoadDFF("myskin.dff", 1) engineReplaceModel(dff, 1) end ) META. "Name" author="n" version="1.3.4" /> Link to comment
DNL291 Posted March 16, 2013 Share Posted March 16, 2013 addEventHandler( "onClientResourceStart", resourceRoot, function() txd = engineLoadTXD("textures/myskin.txd") engineImportTXD(txd, 1) dff = engineLoadDFF("textures/myskin.dff", 1) engineReplaceModel(dff, 1) end ) 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