TDK Posted August 1, 2010 Share Posted August 1, 2010 Hello all, i have a question... it's a real to replace original elegy paintjob with a new one?? this is my script, but it don't works... anybody can help me plz?) function replaceModel() txd = engineLoadTXD("data/elegy.txd", 562 ) engineImportTXD(txd, 562) one = engineLoadTXD("data/elegy1.txd", 562 ) engineImportTXD(txd, 562) two = engineLoadTXD("data/elegy2.txd", 562 ) engineImportTXD(txd, 562) three = engineLoadTXD("data/elegy3.txd", 562 ) engineImportTXD(txd, 562) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) and the 2nd script... function applyMods(res) if (res==getThisResource()) then local ref = engineLoadTXD ( "data/elegy.txd" ) engineImportTXD ( ref, 562 ) end end addEventHandler("onClientResourceStart", getRootElement(), applyMods) local ref = engineLoadTXD ( "data/elegy2.txd" ) engineImportTXD ( ref, 562, 2 ) end end addEventHandler("onClientResourceStart", getRootElement(), applyMods) local ref = engineLoadTXD ( "data/elegy1.txd" ) engineImportTXD ( ref, 562, 1 ) end end addEventHandler("onClientResourceStart", getRootElement(), applyMods) local ref = engineLoadTXD ( "data/elegy3.txd" ) engineImportTXD ( ref, 562, 3 ) end end addEventHandler("onClientResourceStart", getRootElement(), applyMods) Link to comment
Xierra Posted August 1, 2010 Share Posted August 1, 2010 I think I ever heard of the same topic. It was answered that you can't change paintjobs yet. But you still can change it by your client. Link to comment
TDK Posted August 1, 2010 Author Share Posted August 1, 2010 I think I ever heard of the same topic.It was answered that you can't change paintjobs yet. But you still can change it by your client. Please take me more information about it Link to comment
DakiLLa Posted August 1, 2010 Share Posted August 1, 2010 By changing textures in your game. You can not replace paintjobs in MTA right now. [offtopic] Btw, what does 'ref' function do? I saw it in the sorces and it's now highlighted in [lua] tags. [/offtopic] Link to comment
TDK Posted August 1, 2010 Author Share Posted August 1, 2010 By changing textures in your game. You can not replace paintjobs in MTA right now.[offtopic] Btw, what does 'ref' function do? I saw it in the sorces and it's now highlighted in [lua] tags. [/offtopic] 1 MTA Don't Support changing textures (san andreas data files has been modifed) 2 Replacing paintjobs IMHO is real... or how all replaces TXD files?! E Link to comment
DakiLLa Posted August 1, 2010 Share Posted August 1, 2010 The TXD-replacement function replaces a texture of a model with a certain ID. As far as I know, vehicle paitjobs doesn't have an ID at all. Thats why you can't use engineImportTXD this way. Link to comment
TDK Posted August 2, 2010 Author Share Posted August 2, 2010 The TXD-replacement function replaces a texture of a model with a certain ID. As far as I know, vehicle paitjobs doesn't have an ID at all. Thats why you can't use engineImportTXD this way. Thanks DaK !! +1 to you) theme closed Link to comment
zorrigas Posted August 5, 2010 Share Posted August 5, 2010 1 MTA Don't Support changing textures (san andreas data files has been modifed) FALSE! Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server. <verifyclientsettings>0</verifyclientsettings> for disable Change MODELS TXD, DFF, Cols, etc no gives problems. Link to comment
50p Posted August 5, 2010 Share Posted August 5, 2010 1 MTA Don't Support changing textures (san andreas data files has been modifed) FALSE! Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server. <verifyclientsettings>0</verifyclientsettings> for disable Change MODELS TXD, DFF, Cols, etc no gives problems. Depends what models and textures you're talking about and in what way are you changing the models/textures... https://wiki.multitheftauto.com/wiki/Ser ... ent_Checks Link to comment
TDK Posted August 16, 2010 Author Share Posted August 16, 2010 1 MTA Don't Support changing textures (san andreas data files has been modifed) FALSE! Handling modification, Carmods, (.dat, .ide, etc files) not allowed according to the server. <verifyclientsettings>0</verifyclientsettings> for disable Change MODELS TXD, DFF, Cols, etc no gives problems. Depends what models and textures you're talking about and in what way are you changing the models/textures... https://wiki.multitheftauto.com/wiki/Ser ... ent_Checks ololo=D done.. but... i think in mta 1.1 or 1.2..... developers add this function) 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