GamerDeMTA Posted March 15, 2013 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.
DNL291 Posted March 15, 2013 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. Please do not PM me with scripting related question nor support, use the forums instead.
Castillo Posted March 15, 2013 Posted March 15, 2013 You can also use this resource: https://community.multitheftauto.com/in ... ls&id=3016 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
GamerDeMTA Posted March 16, 2013 Author 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"
Castillo Posted March 16, 2013 Posted March 16, 2013 Post the script and meta.xml. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
GamerDeMTA Posted March 16, 2013 Author 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" />
DNL291 Posted March 16, 2013 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 ) Please do not PM me with scripting related question nor support, use the forums instead.
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