Whats wrong with this code:
function Replace( )
elgtx = engineLoadTXD ( "txd/buffalo.txd" )
engineImportTXD ( elgtx, 402 )
elgdf = engineLoadDFF ( "txd/buffalo.dff", 402 )
engineReplaceModel ( elgdf, 402 )
end
addEventHandler('onClientResourceStart', resourceRoot, replace)
addCommandHandler ( "replace", replace )
Meta here
<meta>
<info author="thimo" type="script" version="1.0"/>
<script src="Mod.lua" type="client"/>
<file src="txd/buffalo.txd" type="client" />
<file src="txd/buffalo.dff" type="client " />
</meta>
Pl stell me what im doing wrong! i tried very much but maybe you guys can find a error in it