Please, more index's ( slots ) to assign the object in SetPlayerAttachedObject function.
That will NOT happen, we are lucky to have 10 slots available anyway, because initially we had just 5 and we weren't supposed to have anymore, more than 10 is completely unnecessary.