Jump to content

problem with skin mods


Dj_Deekay

Recommended Posts

hi all ;)

1. thy for reading this

2. my english isnt the best i think pls correct me if not :D

so now my problem:

i want to use new skins for swat and army ..

i want to replace them so all can see them and have to download them

now my scripts:

<resource src="skins" startup="1" protected="0" /> 

(mta serverconf)

  
function replaceSkins() 
    txd = engineLoadTXD ( "swat.txd" ) 
    engineImportTXD ( txd, 285) 
    dff = engineLoadDFF ( "swat.dff", 285) 
    engineReplaceModel ( dff, 285) 
   
  
    xtxd = engineLoadTXD ( "skin.txd" ) 
    engineImportTXD ( xtxd, 287) 
    xdff = engineLoadDFF ( "skin.dff" ) 
    engineReplaceModel ( xdff, 287) 
     
end 
  
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceSkins) 

lua script for replacing and loading the dff,txd files

<meta> 
  <info author="janik schieschke" version="1.0" type="script" />  
  <script src="s_skins.lua" type="client" />  
  <file src="skin.dff" />  
  <file src="skin.txd" />  
  <file src="swat.dff" />  
  <file src="swat.txd" />  
  </meta> 

this is the meta.xml (yeaah you know my name now ^^)

ERROR: Couldn't find resource skins. Check it exists. 

and this is what thelog tells me BUT the rar file name IS skins.rar so i cant understand why he cant find it? is my script buggy or the dff,txd files? pllls im not a lua pro and im new with my server i tried it with car mods and they work pls help :P

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