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)