Pinda Posted April 13, 2010 Share Posted April 13, 2010 is it possible to change a vehicle txd in a map ? like with objects and teksture = engineLoadTXD("object") engineImportTXD(teksture) Link to comment
karlis Posted April 13, 2010 Share Posted April 13, 2010 just add file and script with replace on map Link to comment
Pinda Posted April 13, 2010 Author Share Posted April 13, 2010 i dont get it, what and how to replace. it's not the same as replacing objects Link to comment
SATAN Posted April 13, 2010 Share Posted April 13, 2010 https://wiki.multitheftauto.com/wiki/EngineLoadTXD txd = engineLoadTXD ( "euros.txd" ) engineImportTXD ( txd, 587 ) so its basically the same as replacing object textures Link to comment
Pinda Posted April 13, 2010 Author Share Posted April 13, 2010 so txd = engineLoadTXD ( "euros.txd" ) engineImportTXD ( txd, 587 ) in the client.lua and <file src="euros.txd" /> in the meta Link to comment
SATAN Posted April 13, 2010 Share Posted April 13, 2010 client.lua function replaceTXD() txd = engineLoadTXD ( "euros.txd" ) engineImportTXD ( txd, 587 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) meta.xml <meta> <script src="client.lua" type="client" /> <file src="euros.txd" /> </meta> Link to comment
Pinda Posted April 13, 2010 Author Share Posted April 13, 2010 ok thanks! and the 587 is the code for the car ? Link to comment
SATAN Posted April 13, 2010 Share Posted April 13, 2010 yes, it's the ID for the car you want to replace. Link to comment
Pinda Posted April 13, 2010 Author Share Posted April 13, 2010 ok thanks for helping me out ! 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