CobbTheWarriorsRPG Posted October 17, 2012 Share Posted October 17, 2012 Hi I'm cobb, This is my problem, I want to add the Skins of The Warriors (txd, dff) to my server, and replace them with the skins of these: Skin ID: 14 Skin Model Name: bmori Skin Name/Type: Normal Ped Singleplayer Location: San Andreas Gender: Male Skin ID: 15 Skin Model Name: bmost Skin Name/Type: Mr.Whittaker (RS Haul Owner) Singleplayer Location: San Andreas Gender: Male Skin ID: 16 Skin Model Name: bmyap Skin Name/Type: Airport Ground Worker Singleplayer Location: Airports Gender: Male Skin ID: 17 Skin Model Name: bmybu Skin Name/Type: Buisnessman Singleplayer Location: San Andreas Gender: Male Skin ID: 18 Skin Model Name: bmybe Skin Name/Type: Beach Visitor Singleplayer Location: Beaches of SA Gender: Male Skin ID: 19 Skin Model Name: bmydj Skin Name/Type: DJ Singleplayer Location: San Andreas Gender: Male Skin ID: 20 Skin Model Name: bmyri Skin Name/Type: Rich Guy (Madd Dogg's Manager) Singleplayer Location: San Andreas Gender: Male Skin ID: 21 Skin Model Name: bmycr Skin Name/Type: Normal Ped Singleplayer Location: San Andreas Gender: Male Skin ID: 22 Skin Model Name: bmyst Skin Name/Type: Normal Ped Singleplayer Location: San Andreas Gender: Male I do this: Meta.xml .lua outputChatBox ( "?" ) engineLoadTXD ( "data/Ajax.txd" ) engineImportTXD ( txd, 16 ) engineLoadDFF ( "data/Ajax.dff", 16 ) engineReplaceModel ( dff, 16 ) I made a folder called "data" where files are stored. txd and. dff, but did not work My question is: how do I create a resource to change the skins by that I have? (txd,dff) Link to comment
Mossy Posted October 17, 2012 Share Posted October 17, 2012 Is your problem getting the skins from the folder or actually loading them? viewtopic.php?f=91&t=37337 Link to comment
CobbTheWarriorsRPG Posted October 17, 2012 Author Share Posted October 17, 2012 I neeed to replace them You have a example? Link to comment
myonlake Posted October 18, 2012 Share Posted October 18, 2012 local txd = engineLoadTXD("data/Ajax.txd") engineImportTXD(txd, 16) local dff = engineLoadDFF("data/Ajax.dff", 0) engineReplaceModel(dff, 16) Link to comment
CobbTheWarriorsRPG Posted October 18, 2012 Author Share Posted October 18, 2012 And,How i do the xml file? Link to comment
myonlake Posted October 18, 2012 Share Posted October 18, 2012 https://wiki.multitheftauto.com/wiki/Meta.xml Link to comment
CobbTheWarriorsRPG Posted October 19, 2012 Author Share Posted October 19, 2012 More help please Link to comment
Techial Posted October 19, 2012 Share Posted October 19, 2012 (edited) replaceSkins.lua function replaceSkins() local txd = engineLoadTXD("folder/example.txd") engineImportTXD(txd, 21) local dff = engineLoadDFF("folder/example.dff", 0) engineReplaceModel(dff, 21) local txd = engineLoadTXD("folder/example2.txd") engineImportTXD(txd, 22) local dff = engineLoadDFF("folder/example2.dff", 0) engineReplaceModel(dff, 22) -- Now repeat this process end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), replaceSkins) meta.xml <meta> <script src="replaceSkins.lua" type="client" /> <file src="folder/example.txd" /> <file src="folder/example.dff" /> <file src="folder/example2.txd" /> <file src="folder/example2.dff" /> </meta> There you go, do not hestitate contacting me for further help Regards, Techial. Edited October 20, 2012 by Guest Link to comment
CobbTheWarriorsRPG Posted October 19, 2012 Author Share Posted October 19, 2012 Doesnt Work Link to comment
CobbTheWarriorsRPG Posted October 19, 2012 Author Share Posted October 19, 2012 ERROR: couldnt File Ajax.txd for the resource Replaceskins Link to comment
myonlake Posted October 20, 2012 Share Posted October 20, 2012 Folder: Replaceskins New Folder: Replaceskins/skins Remember to put skins/ to the meta.xml before the file name. Please use your mind. 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