#Ivan7 Posted July 18, 2014 Share Posted July 18, 2014 How would I be able to change a swat txd so that all players can see it? Link to comment
12p Posted July 18, 2014 Share Posted July 18, 2014 Simply put a engineLoadTXD and engineImportTXD functions at the start of a client script. It'll be executed for every client that downloads the script. Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 I know that but see.. do i need to use gta-inside or anything? Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 see these are the files: biker.txd bikerhelmet.txd hoodyagreen.txd tracketrgang.txd zorro.txd zorromask.dff now example to change them would be this maybe: [/lua]skins= { ["bikerhelmet"] = id, ["hoodyagreen"] = id, ["tracketrgang"] = id, ["zorro"] = id, ["zorromask] = id, } function replaceClothes() for swat, id in pairs(texturi) do local txd = engineLoadTXD (swat..".txd") engineImportTXD(txd, id) end end[lua] Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Ok Guys so I did it all but it says when I try load it : couldnt parse meta file for Swat2014 Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 Ok Guys so I did it all but it says when I try load it : couldnt parse meta file for Swat2014 show your , script + meta.xml Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Nvm i fixed its error but see it doesnt show the new skin for some reason look this is how I did it Client: txd = engoneLoadTXD( "data/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("data/swat.dff" ) engineReplaceModel ( dff, 285 ) Meta: Please tell me what the problem is Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Nvm i fixed its error but see it doesnt show the new skin for some reason look this is how I did it Client: txd = engoneLoadTXD( "data/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("data/swat.dff" ) engineReplaceModel ( dff, 285 ) Meta: Please tell me what the problem is Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Nvm i fixed its error but see it doesnt show the new skin for some reason look this is how I did it Client: txd = engoneLoadTXD( "data/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("data/swat.dff" ) engineReplaceModel ( dff, 285 ) Meta: Please tell me what the problem is Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Nvm i fixed its error but see it doesnt show the new skin for some reason look this is how I did it Client: txd = engoneLoadTXD( "data/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("data/swat.dff" ) engineReplaceModel ( dff, 285 ) Meta: Please tell me what the problem is Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 (edited) addEventHandler('onClientResourceStart', resourceRoot, function ( ) txd = engineLoadTXD( "skins/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("skins/swat.dff", 285) engineReplaceModel ( dff, 285 ) outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) end ) Make sure the skins are in folder skins .. Meta.xml <meta> <info author="Name" type="script" version="1.0" name="Skin" /> <script src="sskinc.lua" type="client" /> <files src="skins/swat.txd"/> <files src="skins/swat.dff"/> </meta> Edited @ Edited July 18, 2014 by Guest Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 wont work doesnt show the new skin Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 I did make the folder in side the resource.. it is called skins and in it is the swat.txd + swat.dff Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 I did make the folder in side the resource.. it is called skins and in it is the swat.txd + swat.dff i edited my Post , copy it again , also /debugscript 3 to see if there is any erros ... Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 http://www.gulfup.com/?Kxm0ab thats what it says im not really familar with scripting so if u could also explain what the errors are for future purposes + thanks for helping me! Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 http://www.gulfup.com/?Kxm0abthats what it says im not really familar with scripting so if u could also explain what the errors are for future purposes + thanks for helping me! that becuase your txd , dff files is not good ( corrupted ) make sure you have a good txd , dff files Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 ah so i cant use those skins? hmm ok i will try new skin.. so its np with the codes, its just the skin file? Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 ah so i cant use those skins? hmm ok i will try new skin.. so its np with the codes, its just the skin file? yeb the code is correct and the meta.xml is correct , the problem is with the skin files .. txd , dff need to fined a working ones .. 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