Example : menu(shop,inventory,blaballba)
When i buy something in shop like candy then candy go to inventory. Help plz
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
my_menu = "Title" -- global declaration -- assuming that you have totable/string.split -- Menu builder addhook("say", "menu_cmds") function menu_cmds(id, txt) txt = txt:split() if txt[1] == "!addslot" then my_menu = my_menu .. "," .. txt:sub(#"!addslot") elseif txt[1] == "!showmenu" then menu(id, my_menu) end end