• Dupes TAB DARKRP
    2 replies, posted
I'd like a way to remove the dupes, and saves tab from DarkRP, or make it so they're just blank when you click on it or something so you can't use them! THANK YOU
Disabling the dupe tool should be enough. Or go to your content.lua folder in \garrysmod\gamemodes\sandbox\gamemode\spawnmenu\creationmenu\content and comment it out (just add two dashes in front of each line). This'll get rid of the tabs completely.
[lua]local function removeOldTabls() local tabstoremove = {language.GetPhrase("spawnmenu.category.npcs"), language.GetPhrase("spawnmenu.category.entities"), language.GetPhrase("spawnmenu.category.weapons"), language.GetPhrase("spawnmenu.category.vehicles"), language.GetPhrase("spawnmenu.category.postprocess"), language.GetPhrase("spawnmenu.category.dupes"), language.GetPhrase("spawnmenu.category.saves")} for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do if table.HasValue(tabstoremove, v.Tab:GetText()) then g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true ) removeOldTabls() end end end hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTabls)[/lua] take out the lines you dont need from the table of tabs to remove
Sorry, you need to Log In to post a reply to this thread.