Juan Magallón. Posted September 16, 2011 Share Posted September 16, 2011 Hello, this is a problem I need to fix Urgently. I did a server on MTA SA 1.0 (The last version, not the new one) and I did it with Zombies and all the stuff. I want to put some Skins for the people that enters to use them instead of the default ones. I tried but i can't put them so they can see them. Could someone explain me or Help me out to do it?... please. I guess i can change it with the files named with (.dff y .txd) files. Thanks, please reply ur help. I DO NOT KNOW HOW TO SCRIPT, SO TRY TO DO IT THE EASIEST WAY Link to comment
Castillo Posted September 16, 2011 Share Posted September 16, 2011 You can't replace PED models (.DFF), only the textures (.TXD). Use: https://wiki.multitheftauto.com/wiki/EngineImportTXD https://wiki.multitheftauto.com/wiki/EngineLoadTXD Link to comment
Cadu12 Posted September 16, 2011 Share Posted September 16, 2011 @Solidsnake14 http://code.google.com/p/mtasa-blue/sou ... ail?r=3176 Link to comment
Castillo Posted September 16, 2011 Share Posted September 16, 2011 @Solidsnake14http://code.google.com/p/mtasa-blue/sou ... ail?r=3176 I live in the present, not the future. Link to comment
Juan Magallón. Posted September 16, 2011 Author Share Posted September 16, 2011 I don't understand what i have to do. Please explainme the easiest way i can do it. By the way, i also want to create more Skins, like i've got Army, i would like to create Army 1 and Army 2. How do i do that? Link to comment
Benevolence Posted September 16, 2011 Share Posted September 16, 2011 Solidsnake14 said you can't replace the .dff for peds, so yeah I don't know. But if you want to load the .txd then use this script: function onResourceStart() ---KELVin742---Script.lua TV = engineLoadTXD ( "namehere.txd" ) -- where it says namehere put the name of the file engineImportTXD ( TV, 285 ) -- Skin ID to replace end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Don't forget to load it in meta.xml "namehere.txd" /> I used this to use an edited skin for the SWAT ped, he only had different color camo for army. Link to comment
Juan Magallón. Posted September 16, 2011 Author Share Posted September 16, 2011 Solidsnake14 said you can't replace the .dff for peds, so yeah I don't know. But if you want to load the .txd then use this script: function onResourceStart() ---KELVin742---Script.lua TV = engineLoadTXD ( "namehere.txd" ) -- where it says namehere put the name of the file engineImportTXD ( TV, 285 ) -- Skin ID to replace end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Don't forget to load it in meta.xml "namehere.txd" /> I used this to use an edited skin for the SWAT ped, he only had different color camo for army. Ok, i don't understand a letter. Please tell me where to type that or what to do, please. I'm in a hurry. Link to comment
Benevolence Posted September 17, 2011 Share Posted September 17, 2011 Make a new resource folder. In there, create an .lua file with the name you desire. Then copy and paste the first code into it. Edit the name of the .txd file where it says 'namehere'. Then make a meta.xml file and write then here put the 2nd code I posted then after it write and then edit the 'namehere' and that's it. After that, put the .txd file into the resource folder, start the server and start the resource. But like I said, I don't know what the result will be since you also need to load the .dff to replace the ped (which isn't possible as Solidsnake14 stated)... but try it, I'm also curious to hear what the result will be. 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