gamer_star Posted September 7, 2009 Share 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? Link to comment
subenji99 Posted September 7, 2009 Share 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. Link to comment
gamer_star Posted September 7, 2009 Author Share 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 Link to comment
Gamesnert Posted September 8, 2009 Share 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. Link to comment
gamer_star Posted September 9, 2009 Author Share Posted September 9, 2009 Help me please Link to comment
zorrigas Posted September 10, 2009 Share 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) Link to comment
gamer_star Posted September 11, 2009 Author Share 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 Link to comment
madis Posted September 13, 2009 Share Posted September 13, 2009 There is no second argument for engineLoadTXD. Link to comment
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