So on DarkRP 2.5 there is a demo module of a custom tab. I tried to make a new tab by making a new DPanel and it doesn’t seem to show up.
local DPanel1 = vgui.Create('DPanel')
to make the panel then once I have parented and positioned all the other DLabels etc. I do this:
This should add the f4 tab ( btw tabName is a local variable which I set in the beginning of the code )
Then at the end the hook is:
hook.Add("F4MenuTabs", "InventoryTab", InventoryTab)
I have no idea why it is not adding it.
Also the default tab module when enabled works perfectly fine