B7raani Posted August 16, 2012 Share Posted August 16, 2012 Hey guys i need quick help in this custom object this is my lua file addEventHandler('onClientResourceStart', resourceRoot, function() restoreAllWorldModels() removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) createObject ( 17521, 2502.1000976563,-1714.0999755859,16.299999237061, 0, 0, 0 ) outputChatBox ( "Matam Is Starting.") setTimer ( customObject, 200, 1) setOcclusionsEnabled(false) end ) function customObject () local dff = engineLoadDFF('files/pawnshp_lae2.dff', 0) local txd = engineLoadTXD('files/laeast2_lod.txd', 0) local txd = engineLoadTXD('files/lae2newtempbx.txd', 0) engineReplaceModel(dff, 17521) engineReplaceModel(txd, 17521) engineReplaceModel(txd, 17521) engineSetModelLODDistance(17521, 500) end The Object Is Working But The Txd is not working its all white you can see the image down but it will show color because i installed it in my own gta sa so this is my code what i want to say why its white i included the txd and i dont know what to do more because the txd and dff are stuck together in the object so i cant get id object so what can i do please help and this is my meta.xml and this is the images wish you can help and i think the whole problem from the txd what can i do with it to fix it please help Link to comment
B7raani Posted August 16, 2012 Author Share Posted August 16, 2012 this is the original picture this is what i mean all white you can see it please help me fixing Link to comment
Xeno Posted August 16, 2012 Share Posted August 16, 2012 addEventHandler('onClientResourceStart', resourceRoot, function() restoreAllWorldModels() removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) removeWorldModel(17521,5000000,2502.1000976563,-1714.0999755859,16.299999237061) createObject ( 17521, 2502.1000976563,-1714.0999755859,16.299999237061, 0, 0, 0 ) outputChatBox ( "Matam Is Starting.") setTimer ( customObject, 200, 1) setOcclusionsEnabled(false) end ) function customObject () local dff = engineLoadDFF('files/pawnshp_lae2.dff', 0) engineReplaceModel(dff, 17521) local txd = engineLoadTXD('files/laeast2_lod.txd', 0) engineReplaceModel(txd, 17521) local txd2 = engineLoadTXD('files/lae2newtempbx.txd', 0) engineReplaceModel(txd2, 17521) engineSetModelLODDistance(17521, 500) end 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