İ want to create a simple replace skin resource
my script :
function barskins ()
local girl1txd = engineLoadTXD ( "skins/girl1.txd" )
engineImportTXD ( girl1txd, 192 )
local girl1dff = engineLoadDFF ( "skins/girl1.dff" )
engineReplaceModel ( girl1dff, 192 )
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), barskins)
META.XML
<meta>
<info author="Bluepower" version="1.2" type="script" description="" />
<include resource="interiors" />
<script src="bargirls.lua" type="client" />
<file src="skins/girl1.txd" />
<file src="skins/girl1.dff" />
</meta>
it's not work help me please whats wrong?