Jump to content

Swat skin help!!!!


#Ivan7

Recommended Posts

Ok so im trying to change the txd of swat skin.. and it wont work! the skin stays the same. Let me explain what I Did.

1) Created Folder Swat2014

2)Create Client Script

   addEventHandler('onClientResourceStart', resourceRoot, 
    function ( ) 
      txd = engineLoadTXD( "skins/swat.txd") 
     engineImportTXD (txd, 285 ) 
     dff= engineLoadDFF ("skins/swat.dff", 285) 
     engineReplaceModel ( dff, 285 ) 
    outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) 
     end 
    ) 

3) I made a new folder in side Swat2014 called skins and inside the skins folder is swat.txd + swat.dff

4) I made the meta.xml which is :

I run it but it wont work! the script is fine it outputChatBox "Swat Skin Replaced" but it wont change the skin!

here is what it says in /debugscript3

http://www.gulfup.com/?u5t5pe

I also tryed using other swat skins but non will work!! Please someone fix problem :(

Link to comment

Still wont work

Client:

    addEventHandler('onClientResourceStart', resourceRoot, 
    function ( ) 
      txd = engineLoadTXD( "Swat2014/skins/swat.txd") 
     engineImportTXD (txd, 285 ) 
     dff= engineLoadDFF ("Swat2014/skins/swat.dff", 285) 
     engineReplaceModel ( dff, 285 ) 
    outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) 
     end 
    ) 

Meta:

Link to comment
Still wont work

Client:

    addEventHandler('onClientResourceStart', resourceRoot, 
    function ( ) 
      txd = engineLoadTXD( "Swat2014/skins/swat.txd") 
     engineImportTXD (txd, 285 ) 
     dff= engineLoadDFF ("Swat2014/skins/swat.dff", 285) 
     engineReplaceModel ( dff, 285 ) 
    outputChatBox ( ' * Swat Skin Replaced * ', 255, 255, 0 ) 
     end 
    ) 

Meta:

show image of the file and the txd files

+

/debugscript 3 ?

Link to comment

try it but put the skins without folder

function Dayum()  
SWAT = engineLoadTXD("swat.txd", 285 ) 
engineImportTXD(SWAT, 285) 
SWAT = engineLoadDFF("swat.dff", 285 ) 
engineReplaceModel(SWAT, 285)     
outputChatBox ( ' * Swat Skin Replaced * ',255, 255, 0) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Dayum) 

meta

<meta> 
    <script src="Client.lua" type="client" /> 
    <file src="swat.txd" /> 
    <file src="swat.dff" /> 
</meta> 
  

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...