function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if (element) then if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end end