From b39daed3b1e1b022a177bbe2631db68402ed69ff Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 20 Aug 2017 20:42:30 +0100 Subject: [PATCH] Was So close --- locale/ExpGaming-Core/GUI/ExpGaming - Center Gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/GUI/ExpGaming - Center Gui.lua b/locale/ExpGaming-Core/GUI/ExpGaming - Center Gui.lua index 9584a75f..1db362a7 100644 --- a/locale/ExpGaming-Core/GUI/ExpGaming - Center Gui.lua +++ b/locale/ExpGaming-Core/GUI/ExpGaming - Center Gui.lua @@ -35,7 +35,7 @@ function add_frame.tab(name,default_display,default_tooltip,restriction,frame,ev if not name then error('Tab requires a name') end if not frame then error('Tab requires a frame') end table.insert(frames.tabs,{name=name,display=default_display,frame=frame,event=event}) - for _,f in pairs(frames.center) do if f.name == frame then table.insert(f.tabs,{name,restriction}) end end + for _,f in pairs(frames.center) do if f.name == frame then table.insert(f.tabs,{name=name,restriction=restriction}) end end ExpGui.add_input.button(name,default_display,default_tooltip,draw_frame.tab) end --Draw the center GUI for the player; do not call manually, must use other functions to call