Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menus = {}
- texts = {}
- function newMenu(id, title, cmds)
- local menu = {}
- menu.id = id
- menu.title = title
- menu.cmds = cmds
- menus[id] = menu
- end
- function newText(id, title, txt)
- local text = {}
- text.id = id
- text.title = title
- text.txt = txt
- texts[id] = text
- end
- function getMenu(id)
- return menus[id]
- end
- function getText(id)
- return texts[id]
- end
Add Comment
Please, Sign In to add comment