KalashnikovZ Posted January 4, 2016 Share Posted January 4, 2016 Just finally finished looking for the best skins for my upcoming MTA server, but something is not alright. Got all the skins, everything, twice checked script, everything, but there is something wrong with my scipt... I hope you can help me. Meta.xml <meta> <info type = "script" name = "skinek" author = "Kala" version = "1.0" /> <script src = "client.lua" type = "client" /> <file src="skinek/triadb.dff" /> <file src="skinek/triadb.txd" /> <file src="skinek/bfyri.dff" /> <file src="skinek/bfyri.txd" /> <file src="skinek/bfyst.dff" /> <file src="skinek/bfyst.txd" /> <file src="skinek/wfybe.dff" /> <file src="skinek/wfybe.txd" /> <file src="skinek/bmori.dff" /> <file src="skinek/bmori.txd" /> <file src="skinek/bmybu.dff" /> <file src="skinek/bmybu.txd" /> <file src="skinek/somyri.dff" /> <file src="skinek/somyri.txd" /> <file src="skinek/copgrl3.dff" /> <file src="skinek/copgrl3.txd" /> <file src="skinek/gangrl3.dff" /> <file src="skinek/gangrl3.txd" /> <file src="skinek/bmyri.dff" /> <file src="skinek/bmyri.txd" /> <file src="skinek/bmycr.dff" /> <file src="skinek/bmycr.txd" /> <file src="skinek/bmyst.dff" /> <file src="skinek/bmyst.txd" /> <file src="skinek/wmybmx.dff" /> <file src="skinek/wmybmx.txd" /> <file src="skinek/bmydrug.dff" /> <file src="skinek/bmydrug.txd" /> <file src="skinek/army.dff" /> <file src="skinek/army.txd" /> <file src="skinek/dsher.dff" /> <file src="skinek/dsher.txd" /> <file src="skinek/wmydrug.dff" /> <file src="skinek/wmydrug.txd" /> <file src="skinek/hfyri.dff" /> <file src="skinek/hfyri.txd" /> <file src="skinek/hfyst.dff" /> <file src="skinek/hfyst.txd" /> <file src="skinek/hmyri.dff" /> <file src="skinek/hmyri.txd" /> <file src="skinek/hmyricr.dff" /> <file src="skinek/hmyricr.txd" /> <file src="skinek/ofyri.dff" /> <file src="skinek/ofyri.txd" /> <file src="skinek/omyri.dff" /> <file src="skinek/omyri.txd" /> <file src="skinek/omyst.dff" /> <file src="skinek/omyst.txd" /> <file src="skinek/male01.dff" /> <file src="skinek/male01.txd" /> <file src="skinek/vwfyst1.dff" /> <file src="skinek/vwfyst1.txd" /> <file src="skinek/wmyri.dff" /> <file src="skinek/wmyri.txd" /> </meta> client.lua function skin() local jerrytxd = engineLoadTXD ( "skinek/triadb.txd" ) engineImportTXD ( jerrytxd, 118 ) local jerrydff = engineLoadDFF ( "skins/triadb.dff", 118 ) engineReplaceModel ( jerrydff, 118 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin ) function skin1() local jerrytxd = engineLoadTXD ( "skinek/bfyri.txd" ) engineImportTXD ( jerrytxd, 12 ) local jerrydff = engineLoadDFF ( "skins/bfyri.dff", 12 ) engineReplaceModel ( jerrydff, 12 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin1 ) function skin2() local jerrytxd = engineLoadTXD ( "skinek/bfyst.txd" ) engineImportTXD ( jerrytxd, 13 ) local jerrydff = engineLoadDFF ( "skins/bfyst.dff", 13 ) engineReplaceModel ( jerrydff, 13 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin2 ) function skin3() local jerrytxd = engineLoadTXD ( "skinek/wfybe.txd" ) engineImportTXD ( jerrytxd, 138 ) local jerrydff = engineLoadDFF ( "skins/wfybe.dff", 138 ) engineReplaceModel ( jerrydff, 138 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin3 ) function skin4() local jerrytxd = engineLoadTXD ( "skinek/bmori.txd" ) engineImportTXD ( jerrytxd, 14 ) local jerrydff = engineLoadDFF ( "skins/bmori.dff", 14 ) engineReplaceModel ( jerrydff, 14 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin4 ) function skin5() local jerrytxd = engineLoadTXD ( "skinek/bmybu.txd" ) engineImportTXD ( jerrytxd, 17 ) local jerrydff = engineLoadDFF ( "skins/bmybu.dff", 17 ) engineReplaceModel ( jerrydff, 17 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin5 ) function skin6() local jerrytxd = engineLoadTXD ( "skinek/somyri.txd" ) engineImportTXD ( jerrytxd, 186 ) local jerrydff = engineLoadDFF ( "skins/somyri.dff", 186 ) engineReplaceModel ( jerrydff, 186 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin6 ) function skin7() local jerrytxd = engineLoadTXD ( "skinek/copgrl3.txd" ) engineImportTXD ( jerrytxd, 190 ) local jerrydff = engineLoadDFF ( "skins/copgrl3.dff", 190 ) engineReplaceModel ( jerrydff, 190 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin7 ) function skin8() local jerrytxd = engineLoadTXD ( "skinek/gangrl3.txd" ) engineImportTXD ( jerrytxd, 195 ) local jerrydff = engineLoadDFF ( "skins/gangrl3.dff", 195 ) engineReplaceModel ( jerrydff, 195 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin8 ) function skin9() local jerrytxd = engineLoadTXD ( "skinek/bmyri.txd" ) engineImportTXD ( jerrytxd, 20 ) local jerrydff = engineLoadDFF ( "skins/bmyri.dff", 20 ) engineReplaceModel ( jerrydff, 20 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin9 ) function skin10() local jerrytxd = engineLoadTXD ( "skinek/bmycr.txd" ) engineImportTXD ( jerrytxd, 21 ) local jerrydff = engineLoadDFF ( "skins/bmycr.dff", 21 ) engineReplaceModel ( jerrydff, 21 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin10 ) function skin11() local jerrytxd = engineLoadTXD ( "skinek/bmyst.txd" ) engineImportTXD ( jerrytxd, 22 ) local jerrydff = engineLoadDFF ( "skins/bmyst.dff", 22 ) engineReplaceModel ( jerrydff, 22 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin11 ) function skin12() local jerrytxd = engineLoadTXD ( "skinek/wmybmx.txd" ) engineImportTXD ( jerrytxd, 23 ) local jerrydff = engineLoadDFF ( "skins/wmybmx.dff", 23 ) engineReplaceModel ( jerrydff, 23 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin12 ) function skin13() local jerrytxd = engineLoadTXD ( "skinek/bmydrug.txd" ) engineImportTXD ( jerrytxd, 28 ) local jerrydff = engineLoadDFF ( "skins/bmydrug.dff", 28 ) engineReplaceModel ( jerrydff, 28 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin13 ) function skin14() local jerrytxd = engineLoadTXD ( "skinek/army.txd" ) engineImportTXD ( jerrytxd, 287 ) local jerrydff = engineLoadDFF ( "skins/army.dff", 287 ) engineReplaceModel ( jerrydff, 287 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin14 ) function skin15() local jerrytxd = engineLoadTXD ( "skinek/dsher.txd" ) engineImportTXD ( jerrytxd, 288 ) local jerrydff = engineLoadDFF ( "skins/dsher.dff", 288 ) engineReplaceModel ( jerrydff, 288 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin15 ) function skin16() local jerrytxd = engineLoadTXD ( "skinek/wmydrug.txd" ) engineImportTXD ( jerrytxd, 29 ) local jerrydff = engineLoadDFF ( "skins/wmydrug.dff", 29 ) engineReplaceModel ( jerrydff, 29 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin16 ) function skin17() local jerrytxd = engineLoadTXD ( "skinek/hfyri.txd" ) engineImportTXD ( jerrytxd, 40 ) local jerrydff = engineLoadDFF ( "skins/hfyri.dff", 40 ) engineReplaceModel ( jerrydff, 40 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin17 ) function skin18() local jerrytxd = engineLoadTXD ( "skinek/hfyst.txd" ) engineImportTXD ( jerrytxd, 41 ) local jerrydff = engineLoadDFF ( "skins/hfyst.dff", 41 ) engineReplaceModel ( jerrydff, 41 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin18 ) function skin19() local jerrytxd = engineLoadTXD ( "skinek/hmyri.txd" ) engineImportTXD ( jerrytxd, 46 ) local jerrydff = engineLoadDFF ( "skins/hmyri.dff", 46 ) engineReplaceModel ( jerrydff, 46 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin19 ) function skin20() local jerrytxd = engineLoadTXD ( "skinek/hmyricr.txd" ) engineImportTXD ( jerrytxd, 47 ) local jerrydff = engineLoadDFF ( "skins/hmyricr.dff", 47 ) engineReplaceModel ( jerrydff, 47 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin20 ) function skin21() local jerrytxd = engineLoadTXD ( "skinek/ofyri.txd" ) engineImportTXD ( jerrytxd, 55 ) local jerrydff = engineLoadDFF ( "skins/ofyri.dff", 55 ) engineReplaceModel ( jerrydff, 55 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin21 ) function skin22() local jerrytxd = engineLoadTXD ( "skinek/omyri.txd" ) engineImportTXD ( jerrytxd, 59 ) local jerrydff = engineLoadDFF ( "skins/omyri.dff", 59 ) engineReplaceModel ( jerrydff, 59 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin22 ) function skin23() local jerrytxd = engineLoadTXD ( "skinek/omyst.txd" ) engineImportTXD ( jerrytxd, 60 ) local jerrydff = engineLoadDFF ( "skins/omyst.dff", 60 ) engineReplaceModel ( jerrydff, 60 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin23 ) function skin24() local jerrytxd = engineLoadTXD ( "skinek/male01.txd" ) engineImportTXD ( jerrytxd, 7 ) local jerrydff = engineLoadDFF ( "skins/male01.dff", 7 ) engineReplaceModel ( jerrydff, 7 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin24 ) function skin25() local jerrytxd = engineLoadTXD ( "skinek/vwfyst1.txd" ) engineImportTXD ( jerrytxd, 91 ) local jerrydff = engineLoadDFF ( "skins/vwfyst1.dff", 91 ) engineReplaceModel ( jerrydff, 91 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin25 ) function skin26() local jerrytxd = engineLoadTXD ( "skinek/wmyri.txd" ) engineImportTXD ( jerrytxd, 98 ) local jerrydff = engineLoadDFF ( "skins/wmyri.dff", 98 ) engineReplaceModel ( jerrydff, 98 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( ), skin26 ) Thanks. //Kala Link to comment
Bonsai Posted January 4, 2016 Share Posted January 4, 2016 Did you try /debugscript 3? It most likely shows some error or warning. Link to comment
Tails Posted January 4, 2016 Share Posted January 4, 2016 KalashnikovZ, Try to load the TXD files before the DFF. So not: but: Also, in your code: "skins/triadb.dff", 118 and in your meta file it says "skinek/triadb.dff". 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