• F4 Menu Tab Not Working
    3 replies, posted
For Some Reason The Tab Wont Show up i put this in the darkrp_modules and i named the file cl_tab.lua [CODE] /*--------------------------------------------------------------------------- F4 menu tab modification module. ---------------------------------------------------------------------------*/ local url = "http://wiki.darkrp.com/index.php/Main_Page" local tabName = "MOTD" local function createF4MenuTab() // DarkRP.switchTabOrder(2, 3) -- Remove the "//" in this line if you want to move the third tab to the left of the second tab! // DarkRP.removeF4MenuTab("Ammo") -- Remove the "//" in this line if you want to remove the Ammo tab! local webPage = vgui.Create("F1HTML") webPage:OpenURL(url) DarkRP.addF4MenuTab(tabName, webPage) end hook.Add("F4MenuTabs", "MyCustomF4MenuTab", createF4MenuTab) [/CODE]
Use this: (Yes its the same thing you have but fixed something) Btw do you have another Custom Tab set up? [code] /*--------------------------------------------------------------------------- F4 menu tab modification module. ---------------------------------------------------------------------------*/ local url = "http://wiki.darkrp.com/index.php/Main_Page" local tabName = "MOTD" local function createF4MenuTab() local webPage = vgui.Create("F1HTML") webPage:OpenURL(url) DarkRP.addF4MenuTab(tabName, webPage) end hook.Add("F4MenuTabs", "MyCustomF4MenuTab", createF4MenuTab) [/code] [editline]26th June 2014[/editline] Wait a second. Did you just put the Lua in the DarkRP Modules or did you create a folder and THEN add the lua. If you didnt place the LUA in custom_modules/extraf4tab(create this folder if you dont have it) and then place the LUA there. If you already have a Custom Tab I cant help you. I only know how to add 1 Custom Tab. Let me know if it worked or not.
Yes I made a folder and yes I have another custom tab.
[QUOTE=DeadShotKillz;45220321]Yes I made a folder and yes I have another custom tab.[/QUOTE] I cant help you then. I`m sorry. ;(
Sorry, you need to Log In to post a reply to this thread.