Remove 11 from engineLoadTXD and engineLoadDFF. engineLoadDFF has only 1 argument and engineLoadTXD's second argument accepts only booleans(whether to enable texture filtering or not)And "file" tag doesn't have a 'type' parameter...? They are client-side files anyway
What do you mean by that? 11 is the ID. I am not saying to add another argument and it works perfectly anyway. I even said to re-place 11 with skin ID and it will work perfectly.
You use the ID in engineImportTXD and engineReplaceModel. I am only saying it's unnecessary to type the IDs in engineLoadTXD and engineLoadDFF as they don't do anything in these functions.. It won't create problems in running but script looks ugly like that.
start: Resource could not be found
i can't test my skin in MTA 1.5 I followed ur steps
Maybe this would be better Code: Lualocal skinID = 11 --replace "11" with your skin ID function applySkin() txd = engineLoadTXD("mod.txd", skinID) engineImportTXD(txd, skinID) dff = engineLoadDFF("mod.dff", skinID) engineReplaceModel(dff, skinID) endaddEventHandler("onClientResourceStart", resourceRoot, applySkin)The player will have to change the skin ID just from the variable up.
nothing happend I tried everything.check these screenshots:Show content