roddydennvor Posted April 13, 2015 Share Posted April 13, 2015 Hii there , So i just want to set player skin when the player use an item... For example.. If the player use item id 40 then , the skin change to skin id 191 Thank you , Your help will be appreciate :) Link to comment
xXMADEXx Posted April 13, 2015 Share Posted April 13, 2015 Just use the function setElementModel. Link to comment
roddydennvor Posted April 13, 2015 Author Share Posted April 13, 2015 Solved, Using SetPedSkin function :) Thanks Link to comment
xXMADEXx Posted April 13, 2015 Share Posted April 13, 2015 This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.Please use setElementModel instead. This is why you should use setElementModel, because setPedSkin is going to be removed in a future version of MTA. Link to comment
roddydennvor Posted April 13, 2015 Author Share Posted April 13, 2015 Hmm, how to use setElementModel ??? Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 ) Link to comment
xXMADEXx Posted April 13, 2015 Share Posted April 13, 2015 Hmm, how to use setElementModel ???Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 ) The same way as setPedSkin. Link to comment
roddydennvor Posted April 13, 2015 Author Share Posted April 13, 2015 Okay thank you very much for this information Link to comment
Mr.unpredictable. Posted April 13, 2015 Share Posted April 13, 2015 Look at this example you will get an idea. local ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) addCommandHandler ( "changepedskin", function ( ) setElementModel ( ped, 100 ) end) Link to comment
xXMADEXx Posted April 13, 2015 Share Posted April 13, 2015 Okay thank you very much for this information You're welcome. 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