Jump to content

Please Help me, Integrate Skins.


Juan Magallón.

Recommended Posts

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

dffandtxd.png

Link to comment

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
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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...