#Ivan7 Posted July 18, 2014 Share Posted July 18, 2014 Ok so im trying to change the txd of swat skin.. and it wont work! the skin stays the same. Let me explain what I Did. 1) Created Folder Swat2014 2)Create Client Script 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 ) 3) I made a new folder in side Swat2014 called skins and inside the skins folder is swat.txd + swat.dff 4) I made the meta.xml which is : I run it but it wont work! the script is fine it outputChatBox "Swat Skin Replaced" but it wont change the skin! here is what it says in /debugscript3 http://www.gulfup.com/?u5t5pe I also tryed using other swat skins but non will work!! Please someone fix problem Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 then change the dir to "Swat2014/skins/swat.txd" Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Still wont work Client: addEventHandler('onClientResourceStart', resourceRoot, function ( ) txd = engineLoadTXD( "Swat2014/skins/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("Swat2014/skins/swat.dff", 285) engineReplaceModel ( dff, 285 ) outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) end ) Meta: Link to comment
Max+ Posted July 18, 2014 Share Posted July 18, 2014 Still wont workClient: addEventHandler('onClientResourceStart', resourceRoot, function ( ) txd = engineLoadTXD( "Swat2014/skins/swat.txd") engineImportTXD (txd, 285 ) dff= engineLoadDFF ("Swat2014/skins/swat.dff", 285) engineReplaceModel ( dff, 285 ) outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) end ) Meta: show image of the file and the txd files + /debugscript 3 ? Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 Ok Here they are: 1) Swat2014 Folder Pic: http://tinypic.com/view.php?pic=2mqm5xu ... 8jLxLFvTIU Link to comment
#Ivan7 Posted July 18, 2014 Author Share Posted July 18, 2014 2) skins Folder Pic: http://tinypic.com/view.php?pic=jb680i&s=8#.U8jMMbFvTIU 3) /debugscript 3 pic: http://tinypic.com/view.php?pic=2vtcy89 ... 8jMYbFvTIU Also to let you know i download the skin from gta-inside and it only came with 2 files: swat.txd + swat.dff here is the link if u want it http://www.gtainside.com/en/download.ph ... 9&orderBy= Please show me what the problem is:/ Link to comment
The Don Posted July 18, 2014 Share Posted July 18, 2014 try it but put the skins without folder function Dayum() SWAT = engineLoadTXD("swat.txd", 285 ) engineImportTXD(SWAT, 285) SWAT = engineLoadDFF("swat.dff", 285 ) engineReplaceModel(SWAT, 285) outputChatBox ( ' * Swat Skin Replaced * ',255, 255, 0) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Dayum) meta <meta> <script src="Client.lua" type="client" /> <file src="swat.txd" /> <file src="swat.dff" /> </meta> Link to comment
esporta05 Posted July 23, 2014 Share Posted July 23, 2014 There is a bug at engineloadtxd I think, I am having same issue with extremely simple script. 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