• Removing 'Browse' from Spawnmenu
    0 replies, posted
I'd like to start this off by saying that my intentions with this are not to modify/delete user generated spawn lists, but to rather slightly simplify the menu by removing the 'Browse' category (spawnmenu.category.browse) from the spawnmenu tree. Reason being that players cannot spawn in their own addons' models in my server. I can't seem to figure out how the spawnmenu tree node works but this is my best attempt at it: hook.Add( "SpawnMenuOpen", "RemoveBrowseCategory", function() for k, v in pairs(g_SpawnMenu.CreateMenu.Items[1].Panel:GetChildren()[1].ContentNavBar.Tree:GetChildren()) do   for a, b in pairs(v:GetChildren()[2]) do     if (b:GetText():lower():find("browse")) then       b:Remove();       end;       end;     end     end ) I saw that one popular DarkRP server had done this (not going to give out any names) and wanted to do it for my server as well.
Sorry, you need to Log In to post a reply to this thread.