Posted 29 July 2012 - 07:46 PM
So, I made lirral's menu function on a computer and had another program use it, but now I'm wondering, how do I actually make the menu run things? here is what I tried, but if it worked I wouldn't be posting here :ph34r:/>/>
- Here is the link to Irral's topic: http://www.computerc...gh-menu-making/
local options={
"Launch VaulTec",
"Continue to CraftOS 1.3"
}
local n=CUI(options)
print(n)
if n=1 then
sleep(0.1)
shell.run "vault"
else
shell.run "shell"
end
So, I tried adding an if else to see if that would work but no cigar, any suggestions?- Here is the link to Irral's topic: http://www.computerc...gh-menu-making/