nwmafia Posted November 26, 2012 Share Posted November 26, 2012 I want to replace a "phone sign" into a Stop Sign that I've downloaded, but the following code's i've tried has not worked. Script: txd = engineLoadTXD( "TXD/STOP.txd" ) col = engineLoadCOL( "COL/STOP.col" ) dff = engineLoadDFF( "DFF/STOP.dff", 0 ) engineReplaceTXD( txd, 1234 ) engineReplaceCOL( col, 1234 ) engineReplaceModel( dff, 1234 ) Meta: "STOP.col" /> "STOP.dff" /> "STOP.txd" /> The three files I've downloaded are... STOP.col + STOP.dff and STO.txd Does anyone know how to fix this? Link to comment
Castillo Posted November 26, 2012 Share Posted November 26, 2012 txd = engineLoadTXD( "TXD/STOP.txd" ) col = engineLoadCOL( "COL/STOP.col" ) dff = engineLoadDFF( "DFF/STOP.dff", 0 ) You are trying to load them from folders that does not exist according to your meta.xml. txd = engineLoadTXD( "STOP.txd" ) col = engineLoadCOL( "STOP.col" ) dff = engineLoadDFF( "STOP.dff", 0 ) Link to comment
nwmafia Posted November 26, 2012 Author Share Posted November 26, 2012 Thanks, I will try this, and let you know what happens! Link to comment
nwmafia Posted November 26, 2012 Author Share Posted November 26, 2012 I removed the TXD/ DFF/ and COL/ still no luck. Edit: And you're correct, the TXD, DFF, and COL are not in folders, they're are there along side the lua and meta. Link to comment
Tails Posted November 26, 2012 Share Posted November 26, 2012 addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD( "STOP.txd" ) col = engineLoadCOL( "STOP.col" ) dff = engineLoadDFF( "STOP.dff", 1234 ) engineImportTXD( txd, 1234 ) engineReplaceCOL( col, 1234 ) engineReplaceModel( dff, 1234 ) end ) Not engineReplaceTXD but engineImportTXD Try it Link to comment
nwmafia Posted November 26, 2012 Author Share Posted November 26, 2012 addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD( "STOP.txd" ) col = engineLoadCOL( "STOP.col" ) dff = engineLoadDFF( "STOP.dff", 1234 ) engineImportTXD( txd, 1234 ) engineReplaceCOL( col, 1234 ) engineReplaceModel( dff, 1234 ) end ) Not engineReplaceTXD but engineImportTXD Try it Thank you so much, I'd give you an effin' kiss if I could right now!!!! 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