1
menu(id,"Container,Take coins,Take garbage")
1
menu(id,"Container,,Take garbage")
menu(id,"Container,Take coins,Take garbage")
menu(id,"Container,,Take garbage")
menutbl = {"Take coins","Take garbage"} addhook("serveraction","openmenu") function openmenu(id,a) 	if (a == 1) then 		menu(id,"Container,"..table.concat(menutbl,",")) 	end end addhook("menu","selectinmenu") function selectinmenu(id,title,b) 	if (title == "Container") then 		menutbl[b] = "" 		menu(id,"Container,"..table.concat(menutbl,",")) 	end end
server.lua:13: table index is nil
server.lua:13: table index is nil
menu_action = {"Take coins","Take garbage"} addhook("serveraction","_serveraction") function _serveraction(id,action) if action == 1 then menu(id,"Container,"..table.concat(menu_action,",")) end end addhook("menu","_menu") function _menu(id,title,buton) if title == "Container" then menu_action[buton] = "(None)" menu(id,"Container,"..table.concat(menu_action,",")) end end
menu_action = {"Medic Armor","Laser"} addhook("serveraction","_serveraction") function _serveraction(id,action) if action == 1 then menu(id,"Container,"..table.concat(menu_action,",")) end end addhook("menu","_menu") function _menu(id,title,buton) if title == "Container" then 		if buton == 1 then 			parse ("equip "..id.." 82") 		elseif buton == 2 then 			parse ("equip "..id.." 45") 		end menu_action[buton] = "(None)" menu(id,"Container,"..table.concat(menu_action,",")) end end