Elrol

menu

Apr 10th, 2020 (edited)
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. menus = {}
  2. texts = {}
  3.  
  4. function newMenu(id, title, cmds)
  5.     local menu = {}
  6.     menu.id = id
  7.     menu.title = title
  8.     menu.cmds = cmds
  9.     menus[id] = menu
  10. end
  11.  
  12. function newText(id, title, txt)
  13.     local text = {}
  14.     text.id = id
  15.     text.title = title
  16.     text.txt = txt
  17.     texts[id] = text
  18. end
  19.  
  20. function getMenu(id)
  21.     return menus[id]
  22. end
  23.  
  24. function getText(id)
  25.     return texts[id]
  26. end
Add Comment
Please, Sign In to add comment