Vai precisar do resource bone_attach
function roubarbank (thePlayer)
local x, y, z = getElementPosition (thePlayer)
setPedAnimation (thePlayer, "ROB_BANK", "CAT_Safe_Rob", -1, true, false, false)
local sacomoney = createObject (1550, x, y, z)
setTimer (function (thePlayer)
setPedAnimation (thePlayer, nil)
exports.bone_attach:attachElementToBone (sacomoney, thePlayer, 4, -0.3, 0.2, 0, -125, 0, 0)
end, 1000, 1, thePlayer)
end
addCommandHandler ("roubar", roubarbank)