1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

HL2RP Community Tab?

Discussion in 'Development' started by Ajax, Jun 30, 2017.

  1. Ajax

    Ajax Clockwork Customer

    I was wondering if I could change the community tab to redirect to my forums. Is this possible? If so how? Thanks! :D
     
  2. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    This feature might be coming in the next Clockwork update that should be released with the new HL2RP 2017 theme. It depends, because the Community tab is added over-the-air but a config option would need to be added in the framework itself.
     
  3. Zig

    Zig Guest

    Easily disabled, I'll find the code for you in a second.
     
    • Funny Funny x 1
  4. local PLUGIN = PLUGIN;
    local Clockwork = Clockwork;

    if (CLIENT) then
    -- Called when the menu's items should be added.
    function PLUGIN:MenuItemsAdd(menuItems)
    menuItems:Add("Community", yourpanelhere, "Opens our website.");
    end;
    end;

    I can't make a panel because I'm on a phone however if you want it to just open your site easily use https://wiki.garrysmod.com/page/gui/OpenURL
     
    • Funny Funny x 1

Previous Readers (Total: 0)