tabla2 = {}function setPlayerAnimation3 (player)tabla2[#tabla2 + 1] = createObject(1304,0,0,0)for k, v in pairs(tabla2) do if v then if isElement(v) then setObjectScale(v,0.45) exports.bone_attach:attachElementToBone(v,localPlayer,12, 0.35, 0.015, 0.15, -90, 0, -20) outputChatBox(\"mert\",localPlayer) end end endendaddEvent(\"attach\", true)addEventHandler(\"attach\", getRootElement(),attach)
function attach(player)temp = createObject(1304,0,0,0)setObjectScale(temp,0.45)exports.bone_attach:attachElementToBone(temp,player,12, 0.35, 0.015, 0.15, -90, 0, -20)endaddEvent(\"attach\", true)addEventHandler(\"attach\", getRootElement(),attach)
triggerClientEvent(root, \"attach\", root, getRandomPlayer()) -- random játékosra rakja rá
function destroyObjects()local objects = getElementsByType(\"object\") for i,element in ipairs(objects) do if getElementModel(element) == 1304 then destroyElement(element) end endendaddEvent(\"destroyObjects\", true)addEventHandler(\"destroyObjects\", getRootElement(),destroyObjects)