Jump to content

Need help with replacing skin mods


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...