Advertisement
TheCodingBeast

DarkRP 2.5 Extra Tab

Feb 19th, 2014
6,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. F4 menu tab modification module.
  3. ---------------------------------------------------------------------------*/
  4.  
  5. if true then return end -- REMOVE THIS LINE TO ENABLE THIS MODULE
  6.  
  7. local url = "http://wiki.darkrp.com/index.php/Main_Page"
  8. local tabName = "MOTD"
  9.  
  10.  
  11. local function createF4MenuTab()
  12. // DarkRP.switchTabOrder(2, 3) -- Remove the "//" in this line if you want to move the third tab to the left of the second tab!
  13. // DarkRP.removeF4MenuTab("Ammo") -- Remove the "//" in this line if you want to remove the Ammo tab!
  14.  
  15. local webPage = vgui.Create("F1HTML")
  16. webPage:OpenURL(url)
  17. DarkRP.addF4MenuTab(tabName, webPage)
  18. end
  19. hook.Add("F4MenuTabs", "MyCustomF4MenuTab", createF4MenuTab)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement