hi all
1. thy for reading this
2. my english isnt the best i think pls correct me if not
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