Xeno Posted December 19, 2011 Share Posted December 19, 2011 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
myonlake Posted December 19, 2011 Share Posted December 19, 2011 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
Xeno Posted December 19, 2011 Author Share Posted December 19, 2011 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
myonlake Posted December 19, 2011 Share Posted December 19, 2011 Have you tried to restart the resource few times or MTA? If it doesn't help, it's the .txd fault, re-download it or something :3 Link to comment
Xeno Posted December 19, 2011 Author Share Posted December 19, 2011 Have you tried to restart the resource few times or MTA?If it doesn't help, it's the .txd fault, re-download it or something :3 It was the resource, thank you very much for your help ;3 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now