MatXpl Posted July 3, 2010 Share Posted July 3, 2010 Hi all ! How to replace model (dff) and texture (txt) I create model and texture for ped skin id 254 plase H E L P !!!!!!! Link to comment
rafull6 Posted July 3, 2010 Share Posted July 3, 2010 here is it .lua: function replaceModel() txd = engineLoadTXD("[color=#FF0000]carname.txd[/color]", 560 ) engineImportTXD(txd, 560) dff = engineLoadDFF("[color=#FF0000]carname.dff[/color]", 560 ) engineReplaceModel(dff, 560) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) meta.xml <meta> <info author="*sTx*" name="Race" version="1.0.0" type="script"/> <script src="[color=#FF0000]CAR.lua[/color]" type="client"/> <file src="[color=#FF0000]carname.txd[/color]" type="client"/> <file src="[color=#FF0000]carname.dff[/color]" type="client"/> </meta> all, what i drawed in a red you must change to yours. in archive (.zip) you must place .lua meta.xml and .txd\.dff files. That's all. =) Link to comment
MatXpl Posted July 3, 2010 Author Share Posted July 3, 2010 thx 2. How to replace ped.ifp ? ? Link to comment
dzek (varez) Posted July 3, 2010 Share Posted July 3, 2010 for peds you can only replace txd Link to comment
x86 Posted July 3, 2010 Share Posted July 3, 2010 Custom animations are coming in MTA v1.1. Link to comment
BossMan Posted June 4, 2011 Share Posted June 4, 2011 can someone show me how to do a infernus plz plus i dont understand this guy Link to comment
GerardWay Posted June 12, 2011 Share Posted June 12, 2011 script.lua= function replaceModel() txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) meta.xml= <meta> <info author="[D.A]gnl.killer" name="Infernus" version="1.0.5" type="script"/> <script src="script.lua" type="client"/> <file src="infernus.txd" type="client"/> <file src="infernus.dff" type="client"/> </meta> 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