gamer_star Posted September 7, 2009 Posted September 7, 2009 İ 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?
subenji99 Posted September 7, 2009 Posted September 7, 2009 local girl1dff = engineLoadDFF ( "skins/girl1.dff", 0 ) https://wiki.multitheftauto.com/index.ph ... ineLoadDFF Although if I recall correctly, replacing a ped's model doesn't work. You can only replace their textures.
gamer_star Posted September 7, 2009 Author Posted September 7, 2009 local girl1dff = engineLoadDFF ( "skins/girl1.dff", 0 ) https://wiki.multitheftauto.com/index.ph ... ineLoadDFF Although if I recall correctly, replacing a ped's model doesn't work. You can only replace their textures. okey function barskins () local girl1 = engineLoadTXD ( "skins/girl1.txd" ) engineImportTXD ( girl1, 192 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), barskins) not work again
Gamesnert Posted September 8, 2009 Posted September 8, 2009 Make sure you only set your skin to ID 192 AFTER it's replaced. If I remember correctly, it didn't work on skins currently in use.
zorrigas Posted September 10, 2009 Posted September 10, 2009 replaces only if the name of the texture (inside the txd) is the same as the original e.g. 217.txd (inside wmyclot)
gamer_star Posted September 11, 2009 Author Posted September 11, 2009 replaces only if the name of the texture (inside the txd) is the same as the originale.g. 217.txd (inside wmyclot) İ changed txd = engineLoadTXD("data/280.txd", 280 ) engineImportTXD(txd, 280) <file src="data/280.txd" type="client"/> not working
madis Posted September 13, 2009 Posted September 13, 2009 There is no second argument for engineLoadTXD.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now