Jump to content

Custom Skin is not working


MetaGamer

Recommended Posts

As the title says. This is my code

meta.xml

  
<meta> 
     <info author="Mehtab" type="misc" name="Stanopolo" description="Anything is possible" /> 
     <script src="main.lua" type="client" /> 
     <file src="skins/22.txd" /> 
</meta> 
  

main.lua

  
function onResourceStart() 
    skin = engineLoadTXD ( "skins/22.txd" )  
    engineImportTXD ( skin, 22 ) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 
  

There is no error shown on the console but when I /setskin to 22 the skin is the old gta san andreas skin. Not the custom skin. What maybe the problem?

Link to comment

try only whit this i think is your txd file wrong or the server have bug tudday i maked a custom ped not only TXD i maked a DFF to for a halloween pach and its working whitout problem's

 skin = engineLoadTXD ( "skins/22.txd" ) 
    engineImportTXD ( skin, 22 ) 

Link to comment

your problem is the txd i don't know for what objects is that txd but i am 100% shure that is not a ped txd

how to find a ped txd :

go to your GTA:SA folder/data and there you search for peds.ide open whit notepad press ctrl+f (search) and you write your ped id in your case is 105 and you will se this line :

105, FAM1, FAM1, GANG2, STAT_GANG2, gang2, 110F,1, null,5,5,PED_TYPE_GANG,VOICE_GNG_FAM1 ,VOICE_GNG_FAM2

and the third is your ped txd name : "FAM1" now you open img tool in search write "FAM1" and you find your ped txd

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