My question is described by the title.
I want to be able to set the slots of a custom gui to the items in your hotbar. As far as I know, the only way you can do this, is by selecting each hotbar slot, and assigning the item in each one to a gui slot with the get item in main-hand of target entity block. The problem is I can't change the selected hotbar slot from the procedure.
I didn't find anything about this on the wiki.
Could this maybe be added in later versions?