Sergei- Posted May 8, 2013 Share Posted May 8, 2013 my meta.xml file type="misc" name="Texture replacement for ped ID: 235" author="Unknown" description="" version="1" /> "Terrorist.txd" /> "Terrorist.dff" /> replace.lua file txd = engineLoadTXD("Terrorist.txd") engineImportTXD(txd, 235) dff = engineLoadDFF("Terrorist.dff", 235) engineReplaceModel(dff, 235) Is the two files correct?Check and tell me if any error.i moded but it doesnt work. Link to comment
iPrestege Posted May 8, 2013 Share Posted May 8, 2013 it's a "client" script And you're script it would be better like that : addEventHandler("onClientResourceStart",resourceRoot, function ( ) txd = engineLoadTXD("Terrorist.txd") engineImportTXD(txd, 235) dff = engineLoadDFF("Terrorist.dff", 235) engineReplaceModel(dff, 235) end ) Link to comment
Quited Posted May 8, 2013 Share Posted May 8, 2013 Tool For Replace any dff , txd files and convert to resource : http://www.mediafire.com/?kbz7fvkabtuuuxv it is very easier Link to comment
Sergei- Posted May 8, 2013 Author Share Posted May 8, 2013 thanks dude it worked,can you tell me how to mod weapon with a example of meta.xml and replace.lua file? it will helpfull Link to comment
iPrestege Posted May 8, 2013 Share Posted May 8, 2013 No problem to know the function it's a 'server side' OR 'client side' You have to open the wiki page for example this page : setPedArmor It's 'server side' Read it on the right dxDrawText It's 'client side' Read it on the right as i said above . Link to comment
Sergei- Posted May 8, 2013 Author Share Posted May 8, 2013 and what about modding weapons.give me a example of meta.xml file and replace.lua file? Link to comment
Castillo Posted May 8, 2013 Share Posted May 8, 2013 You can actually use the "modloader" resource which can be found at the MTA community, would make it a lot easier to replace vehicles/skins/weapons. Link to comment
Sergei- Posted May 8, 2013 Author Share Posted May 8, 2013 modloader crashes my server,when i start the resource.so i am trying to make it manual. 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