Jump to content

skins replacement help


ikiller

Recommended Posts

Posted

Can anyone help me,and tell me how to replace skins into my server.like download skins from gtagarage,gtainside

and replace them with the skins inside server?

please help!

  • Moderators
Posted

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

Posted

thank you sky.are u the sky that play Call of duty 2 mod?

btw should the dff and txd files from the mod be placed in that folder?

  • Moderators
Posted

If something is wrong etc.

You can tell me the names of the mods and I can create the script for you and put it in a zip file.

Name: .txd/.dff/skin

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