NotAvailable Posted June 7, 2011 Share Posted June 7, 2011 Hi, i have a little problem with my custom model for GTA. I get this error when i start the resource: WARNING: lights/script.lua:5: Bad 'txd' pointer @ 'engineImportTXD'(1) Does someone know how to fix this? EDIT: I don't know whats wrong, i tried to fix it several times but the model stays gray. Regards, Jesseunit Link to comment
#Paper Posted June 7, 2011 Share Posted June 7, 2011 Mybe you need to texturize the ddf model out of mta... idk, ask to Bonox.exe Link to comment
NotAvailable Posted June 7, 2011 Author Share Posted June 7, 2011 Mybe you need to texturize the ddf model out of mta... idk, ask to Bonox.exe Ah, okay. Thanks for the help anyways Link to comment
NotAvailable Posted June 7, 2011 Author Share Posted June 7, 2011 Hmmm, i tried more ways, but i still get the same error. Link to comment
NotAvailable Posted June 7, 2011 Author Share Posted June 7, 2011 this is it: addEventHandler('onClientResourceStart', resourceRoot, function() local txd = engineLoadTXD('files/bridge_road2.txd') engineImportTXD(txd, 2052) local dff = engineLoadDFF('files/bridge_road.dff', 0) engineReplaceModel(dff, 2052) local col = engineLoadCOL('files/bridge_road.col') engineReplaceCOL(col, 2052) engineSetModelLODDistance(2052, 300) end ) Link to comment
karlis Posted June 7, 2011 Share Posted June 7, 2011 make sure texture file is valid and with right name, and specified in meta.xml. Link to comment
NotAvailable Posted June 8, 2011 Author Share Posted June 8, 2011 I fixed it, Thanks for the help everybody! 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