roddydennvor Posted April 13, 2015 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 :)
roddydennvor Posted April 13, 2015 Author Posted April 13, 2015 Solved, Using SetPedSkin function :) Thanks
xXMADEXx Posted April 13, 2015 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.
roddydennvor Posted April 13, 2015 Author Posted April 13, 2015 Hmm, how to use setElementModel ??? Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 )
xXMADEXx Posted April 13, 2015 Posted April 13, 2015 Hmm, how to use setElementModel ???Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 ) The same way as setPedSkin.
roddydennvor Posted April 13, 2015 Author Posted April 13, 2015 Okay thank you very much for this information
Mr.unpredictable. Posted April 13, 2015 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)
xXMADEXx Posted April 13, 2015 Posted April 13, 2015 Okay thank you very much for this information You're welcome.
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