MatXpl Posted July 3, 2010 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 !!!!!!! MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
rafull6 Posted July 3, 2010 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. =)
MatXpl Posted July 3, 2010 Author Posted July 3, 2010 thx 2. How to replace ped.ifp ? ? MTA:SA scripts/gamemodes/misc: http://www.mtasa.xn.pl
dzek (varez) Posted July 3, 2010 Posted July 3, 2010 for peds you can only replace txd Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
BossMan Posted June 4, 2011 Posted June 4, 2011 can someone show me how to do a infernus plz plus i dont understand this guy
GerardWay Posted June 12, 2011 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>
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