Jump to content

Changing Skins


Xeno

Recommended Posts

I've made a custom skin and was trying to upload it to my local server ,this is the first time I have actauly tried to make a custom skin work and this is what i've done.

  
function onResourceStart() 
    skin = engineLoadTXD ( "veg.txd" ) 
skin1 = engineLoadDFF ( "veg.dff", 22) 
    engineImportTXD ( skin, 22 ) 
engineReplaceModel ( skin1, 22 ) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 
  

It doesnt seem to replace the skin, and I've added it to the meta, ect. Please help me.

Xeno

Link to comment

1. You had forgotten the 'meta.xml' meta tags?

meta.xml

2. Your files are in server-side?

Change it to client-side from the 'meta.xml'.

3. Your files are in an another folder like '/resource/textures/'?

function onResourceStart() 
    skin1 = engineLoadTXD("textures/veg.txd") 
    skin2 = engineLoadDFF("textures/veg.dff", 22) 
    engineImportTXD(skin1, 22) 
    engineReplaceModel(skin2, 22) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 

meta.xml

Link to comment
1. You had forgotten the 'meta.xml' meta tags?

meta.xml

2. Your files are in server-side?

Change it to client-side from the 'meta.xml'.

3. Your files are in an another folder like '/resource/textures/'?

function onResourceStart() 
    skin1 = engineLoadTXD("textures/veg.txd") 
    skin2 = engineLoadDFF("textures/veg.dff", 22) 
    engineImportTXD(skin1, 22) 
    engineReplaceModel(skin2, 22) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 

meta.xml

The skin is now showing, but it doesn't seem to have any colour to it, like, the outline is all there, but the actual colour is just whitish. Is this the .txd and the .dff's fault?

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