Sign in to follow this  
rafael15420

Replacing CJ skin?

Recommended Posts

You can change textures. You can't change models. Someone gave me a script of this:

The lua file:

(Afro for example)

textures = { 
["afro"] = 30201, 
} 
  
function replaceClothes() 
    for cloth, id in pairs(textures) do 
    local txd = engineLoadTXD(cloth..".txd") 
    engineImportTXD(txd, id) 
    end 
end 
addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) 

I think you can make yourself a meta, but just in case:

    "Threule" version="1" type="script" /> 
    

You can get the IDs from here:

http://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs

Share this post


Link to post
You can change textures. You can't change models. Someone gave me a script of this:

The lua file:

(Afro for example)

textures = { 
["afro"] = 30201, 
} 
  
function replaceClothes() 
    for cloth, id in pairs(textures) do 
    local txd = engineLoadTXD(cloth..".txd") 
    engineImportTXD(txd, id) 
    end 
end 
addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) 

I think you can make yourself a meta, but just in case:

    "Threule" version="1" type="script" /> 
    

You can get the IDs from here:

http://wiki.multitheftauto.com/wiki/Clo ... ponent_IDs

and look here also

for more ideas only :

https://forum.mtasa.com/viewtopic.php?f=91&t=38174

Share this post


Link to post

Threule, did not work, anyway thanks

textures = { 
["coach"] = 30308, 
} 
  
function replaceClothes() 
    for cloth, id in pairs(textures) do 
    local txd = engineLoadTXD(cloth..".txd") 
    engineImportTXD(txd, id) 
    end 
end 
addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) 

    "Threule" version="1" type="script" /> 
    

Share this post


Link to post

I am asuming you have the txt in the root folder, where both scripts are.

Anyway, it works for me (Image in spoiler coz' 2big):

61BsXal.png

Edited by Guest

Share this post


Link to post

52x5xc.png

textures = { 
["wcoatblue"] = 30535, 
} 
  
function replaceClothes() 
    for cloth, id in pairs(textures) do 
    local txd = engineLoadTXD(cloth..".txd") 
    engineImportTXD(txd, id) 
    end 
end 
addEventHandler("onClientResourceStart", resourceRoot, replaceClothes) 

    "Threule" version="1" type="script" /> 
    

2agq53a.png

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.