Jump to content

skins replacement help


ikiller

Recommended Posts

  • Moderators

Hi Ikiller

<meta> 
    <info author="Converter: Ikiller" name="skin"  type="script" description="Skin" /> 
       <script src="skin.lua" type="client" /> 
       <file src="     [color=#0000FF]  X [/color]      .txd" />    
       <file src="      [color=#0000FF]Y[/color]         .dff" /> 
</meta> 
  

  
-- client script> skin.lua 
  
function replaceskin()  
  txd = engineLoadTXD("[color=#0000FF]X[/color].txd", SKINNUMBER) 
  engineImportTXD(txd, SKINNUMBER) 
  dff = engineLoadDFF(" [color=#0000FF]Y[/color].dff", SKINNUMBER) 
  engineReplaceModel(dff,SKINNUMBER) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceskin) 
  
addCommandHandler ( "reloadskin", replaceskin ) 
  

X = name of the .txd file.

Y = name of the .dff file.

SKINNUMBER = skin you want to replace.

Create folder > create two text files and give them the name "meta.xml" and "skin.lua" > put the script in it and replace the "Y", "X" and "SKINNUMBER" > have fun!

Greetings Sky

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