Custom f4 menu error

Error


[ERROR] addons/p_darkrp_f4/lua/p_f4menu/vgui/vgui_menu.lua:45: attempt to index local 'tab' (a nil value)
1. OpenTab - addons/p_darkrp_f4/lua/p_f4menu/vgui/vgui_menu.lua:45
2. DoClick - addons/p_darkrp_f4/lua/p_f4menu/vgui/vgui_jobicon.lua:245
3. unknown - lua/vgui/dlabel.lua:206

vgui_menu.lua = http://hastebin.com/naqegukipa.lua
vgui_jobicon.lua = http://hastebin.com/bocanuhuvo.lua

I can not find the problem, please help

Think I found a typo

OpenTab is being passed parent.TAB which does not exist/is nil.