Gamemode spawn menu.

I’m making a spawn menu for a gamemode and I have a few questions.

How can I add props on the go… as in add the props by typing the model into a typing bar and it writes that to a .lua. I was thinking something along the lines of if something is typed and you press add then it checks for the max number of props in the array and adds 1 to that for the next slot.

Also is there a way to add tabs on the go without editing the .lua file everytime you wanna make a new tab?