As the title says. This is my code
meta.xml
<meta>
<info author="Mehtab" type="misc" name="Stanopolo" description="Anything is possible" />
<script src="main.lua" type="client" />
<file src="skins/22.txd" />
</meta>
main.lua
function onResourceStart()
skin = engineLoadTXD ( "skins/22.txd" )
engineImportTXD ( skin, 22 )
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart)
There is no error shown on the console but when I /setskin to 22 the skin is the old gta san andreas skin. Not the custom skin. What maybe the problem?