Jump to content

Help?


GamerDeMTA

Recommended Posts

addEventHandler( "onClientResourceStart", resourceRoot,  
    function() 
        txd = engineLoadTXD("txdName.txd") 
        engineImportTXD(txd, skinID) 
        dff = engineLoadDFF("dffName.dff", skinID) 
        engineReplaceModel(dff, skinID) 
    end 
) 

<meta> 
    <script src="script.lua" type="client" /> 
  
    <file src="txdName.txd" /> 
    <file src="dffName.dff" /> 
</meta> 

Replace "txdName.txd" and "dffName.dff" to the name of your TXD skin and DFF skin name, respectively.

And the script name in meta.xml.

Link to comment
addEventHandler( "onClientResourceStart", resourceRoot,  
    function() 
        txd = engineLoadTXD("txdName.txd") 
        engineImportTXD(txd, skinID) 
        dff = engineLoadDFF("dffName.dff", skinID) 
        engineReplaceModel(dff, skinID) 
    end 
) 

<meta> 
    <script src="script.lua" type="client" /> 
  
    <file src="txdName.txd" /> 
    <file src="dffName.dff" /> 
</meta> 

Replace "txdName.txd" and "dffName.dff" to the name of your TXD skin and DFF skin name, respectively.

And the script name in meta.xml.

I used it for replace TRUTH's Skin in my Freeroam and it doesn't work D: I put as skinID "1". Also I put the textures & lua in a folder called "textures"

Link to comment

Okay...

THE LUA.

addEventHandler( "onClientResourceStart", resourceRoot, 
    function() 
        txd = engineLoadTXD("myskin.txd") 
        engineImportTXD(txd, 1) 
        dff = engineLoadDFF("myskin.dff", 1) 
        engineReplaceModel(dff, 1) 
    end 
) 

META.

     
    "Name" author="n" version="1.3.4" /> 
        

Link to comment
addEventHandler( "onClientResourceStart", resourceRoot, 
    function() 
        txd = engineLoadTXD("textures/myskin.txd") 
        engineImportTXD(txd, 1) 
        dff = engineLoadDFF("textures/myskin.dff", 1) 
        engineReplaceModel(dff, 1) 
    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...