adward Posted October 21, 2011 Share 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 Link to comment
Blaawee Posted October 21, 2011 Share Posted October 21, 2011 (edited) ~~ Edited October 21, 2011 by Guest Link to comment
adward Posted October 21, 2011 Author Share Posted October 21, 2011 iam trying with your code the skin not replaced plz someone give me server.lua thank you Link to comment
Blaawee Posted October 21, 2011 Share Posted October 21, 2011 Did You Stoled it From TAPL ?? Link to comment
adward Posted October 21, 2011 Author Share 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 Link to comment
adward Posted October 21, 2011 Author Share Posted October 21, 2011 no I not stolen from any one I do this with my self Link to comment
Blaawee Posted October 21, 2011 Share 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 ?? Link to comment
adward Posted October 21, 2011 Author Share Posted October 21, 2011 I do not know I did it myself and My friend helped me Link to comment
TAPL Posted October 22, 2011 Share 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 Link to comment
Aibo Posted October 22, 2011 Share 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. Link to comment
TAPL Posted October 22, 2011 Share 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 Link to comment
adward Posted October 22, 2011 Author Share 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 Link to comment
TAPL Posted October 22, 2011 Share 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 Link to comment
helpme Posted October 23, 2011 Share 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" /> Link to comment
adward Posted October 23, 2011 Author Share Posted October 23, 2011 it is not work thank you for help me Link to comment
Castillo Posted October 23, 2011 Share 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 Link to comment
adward Posted October 23, 2011 Author Share Posted October 23, 2011 Solidsnake14 thanks you so much you are the best 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