Kabuto0303 Posted June 20, 2021 Share Posted June 20, 2021 (edited) Ola, então eu estou criando jutsus para meu servidor de naruto no mta, queria saber se algum de vocês poderia me ajudar? estou com um problema onde eu quero adicionar um objeto na mão do player usando o attachElementToBone mas o objeto não fixa na mão do player ele fica no ar, se alguem puder me ajudar agradeço muito aqui está o código: function attachCash (thePlayer) local x, y, z = getElementPosition (thePlayer) local rase = createObject (1598, x, y, z) setElementCollisionsEnabled(rase,false) setPedAnimation(thePlayer,"PARK","Tai_Chi_in",-1, false, true, false, false) attachElementToBone (rase, thePlayer, 12) setTimer (function (thePlayer) setPedAnimation (thePlayer, nil) end, 1000, 1, thePlayer) end addCommandHandler ("getbag", attachCash) Edited June 20, 2021 by Kabuto0303 Link to comment
Boechat Posted June 21, 2021 Share Posted June 21, 2021 Recomendo que você use a resource pAttach pra isso. 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