adward Posted October 21, 2011 Posted October 21, 2011 Hi there! Can somebody give me the code how to replace a skins this is my client.lua addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "66.txd" ) engineImportTXD ( txd, 66 ) dff = engineLoadDFF ( "66.dff", 0 ) engineReplaceModel ( dff, 66 ) triggerServerEvent ("doFixSkin", getLocalPlayer()) end) in my server freeroam when iam start resource skin not replace when iam kill my self then my skin replaced plz some one help me to make server.lua thanks all
adward Posted October 21, 2011 Author Posted October 21, 2011 iam trying with your code the skin not replaced plz someone give me server.lua thank you
adward Posted October 21, 2011 Author Posted October 21, 2011 thank you yuor code is work now but when iam join in server skin not replace when iam kill my self the skin replace i need replace when start resource and when join server sory for wasting your time plz some one help me to make this
adward Posted October 21, 2011 Author Posted October 21, 2011 no I not stolen from any one I do this with my self
Blaawee Posted October 21, 2011 Posted October 21, 2011 no I not stolen from any oneI do this with my self o.k this your code right : addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "66.txd" ) engineImportTXD ( txd, 66 ) dff = engineLoadDFF ( "66.dff", 0 ) engineReplaceModel ( dff, 66 ) triggerServerEvent ("doFixSkin", getLocalPlayer()) end) and this TAPL code addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "hmyri.txd" ) engineImportTXD ( txd, 46 ) dff = engineLoadDFF ( "hmyri.dff", 0 ) engineReplaceModel ( dff, 46 ) triggerServerEvent ("doFixSkin", getLocalPlayer()) end) tell me What's the difreent ??
adward Posted October 21, 2011 Author Posted October 21, 2011 I do not know I did it myself and My friend helped me
TAPL Posted October 22, 2011 Posted October 22, 2011 stop stealing script from my servers :@ i hate who stealing from my server you register a new account just for open topic to help with stolen script? you have 3 account 1-MOJRM-511 2-adward 3-LI7IL we don't know if you have more lol hi i wanna settimer on 5 Minutehow i but 5 Minute i know the second = 1000 but i wanna put 5 Minute how
Aibo Posted October 22, 2011 Posted October 22, 2011 stop stealing script from my servers :@ i hate who stealing from my server and what is here to steal? its a generic script for txd/dff replacement.
TAPL Posted October 22, 2011 Posted October 22, 2011 triggerServerEvent ("doFixSkin", getLocalPlayer()) as you can see he steal this and he is asking for server side HERE also this guy stealing images .. sounds files .. etc from my server -,- he has 3 account why? answer this lol
adward Posted October 22, 2011 Author Posted October 22, 2011 TAPL Iam not stolen script from you I do with my self I ned somoone help me ______________ TAPL: stop cmment in my topic i hate you shit up __________________ Thanks all
TAPL Posted October 22, 2011 Posted October 22, 2011 Shut UPPPPPPPP F*** you think this i am idiot? stupid? F*** U you just can say "Thanks all" "Thanks all" "Thanks all" "Thanks all" "Thanks all" F*** U F*** U F*** U F*** U F*** U F*** U F*** U
helpme Posted October 23, 2011 Posted October 23, 2011 try this client addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "66.txd" ) engineImportTXD ( txd, 66 ) dff = engineLoadDFF ( "66.dff", 0 ) engineReplaceModel ( dff, 66 ) triggerServerEvent ("doFixSkin", getLocalPlayer()) end) server addEvent("doFixSkin", true) addEventHandler("doFixSkin", rootElement, function() outputChatBox("'Happy Now ", source, 255, 255, 0) end ) meta type="misc" name="Happy Now" author="stupid" description="" version="1" /> "66.dff" /> "66.txd" />
Castillo Posted October 23, 2011 Posted October 23, 2011 (edited) -- client side: addEventHandler("onClientResourceStart",resourceRoot, function () txd = engineLoadTXD ( "66.txd" ) engineImportTXD ( txd, 66 ) dff = engineLoadDFF ( "66.dff", 0 ) engineReplaceModel ( dff, 66 ) triggerServerEvent ("doFixSkin", localPlayer, getElementModel(localPlayer)) end) -- server side: addEvent("doFixSkin", true) addEventHandler("doFixSkin", root, function(oldSkin) setElementModel(source, 0) setTimer(setElementModel,200,1,source,oldSkin) end ) -- meta.xml: type="misc" name="Skin" author="adward" description="" version="1" /> Edited October 23, 2011 by Guest
adward Posted October 23, 2011 Author Posted October 23, 2011 Solidsnake14 thanks you so much you are the best
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