..:D&G:.. Posted June 15, 2013 Share Posted June 15, 2013 Hello, I want to replace CJ's skin with one of mine, but the skin has 1 .dff file and 3 .txd files. What code do I have to use? Files: head.dff baldbeard.txd BIGplayer_torso.txd player_torso.txd Link to comment
iPrestege Posted June 15, 2013 Share Posted June 15, 2013 engineLoadTXD engineLoadDFF engineImportTXD engineReplaceModel Event : onClientResourceStart Link to comment
..:D&G:.. Posted June 15, 2013 Author Share Posted June 15, 2013 (edited) I knew this... But look what I did: txd = engineLoadTXD ( "skins/baldbeard.txd", 0) engineImportTXD ( txd, 0 ) dff = engineLoadDFF ( "skins/head.dff", 0) engineReplaceModel( dff, 0 ) txd = engineLoadTXD ( "skins/BIGplayer_torso.txd", 0) engineImportTXD ( txd, 0 ) txd = engineLoadTXD ( "skins/player_torso.txd", 0) engineImportTXD ( txd, 0 ) Edited June 15, 2013 by Guest Link to comment
iPrestege Posted June 15, 2013 Share Posted June 15, 2013 You did pass 0 model you want to replace 0 model? It's 'CJ' Skin | = . Link to comment
..:D&G:.. Posted June 15, 2013 Author Share Posted June 15, 2013 I know, the skin is for CJ... Link to comment
PaiN^ Posted June 15, 2013 Share Posted June 15, 2013 Did you add the .txd and the .dff files to the meta ? Link to comment
..:D&G:.. Posted June 16, 2013 Author Share Posted June 16, 2013 Yes But still doesn't wotk :\ "skins/player_torso.txd" /> "skins/BIGplayer_torso.txd" /> "skins/baldbeard.txd" /> "skins/head.dff" /> Link to comment
iPrestege Posted June 16, 2013 Share Posted June 16, 2013 Yes But still doesn't wotk :\ "skins/player_torso.txd" /> "skins/BIGplayer_torso.txd" /> "skins/baldbeard.txd" /> "skins/head.dff" /> Error's debugscript 3. Link to comment
..:D&G:.. Posted June 16, 2013 Author Share Posted June 16, 2013 I can't really use debugscript because I have an error that spams it.. The error its from other script.. Link to comment
iPrestege Posted June 16, 2013 Share Posted June 16, 2013 I can't really use debugscript because I have an error that spams it.. The error its from other script.. Stop the other script then use it. Link to comment
..:D&G:.. Posted June 16, 2013 Author Share Posted June 16, 2013 ERROR: mods/c_mods.lua:96 attempt to call global 'engineImportDFF' (a nil value) Link to comment
iPrestege Posted June 16, 2013 Share Posted June 16, 2013 It's a client side? And 'engineImportDFF' Function doesn't exists . Link to comment
..:D&G:.. Posted June 16, 2013 Author Share Posted June 16, 2013 I changed the the code a bit: txd = engineLoadTXD("skins/baldbeard.txd") engineImportTXD(txd, 0) dff = engineLoadDFF("skins/head.dff") engineReplaceModel( dff, 0) txd = engineLoadTXD("skins/BIGplayer_torso.txd") engineImportTXD(txd, 0) txd = engineLoadTXD("skins/player_torso.txd") engineImportTXD(txd, 0) And look what I get: WARNING: mods/c_mods.lua:96 Bad usage @ 'engineReplaceModel' [Model ID 0 replace failed] Link to comment
iPrestege Posted June 16, 2013 Share Posted June 16, 2013 After search got this : Here . Link to comment
..:D&G:.. Posted June 16, 2013 Author Share Posted June 16, 2013 :~ I am not good at this...... 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