• Q Menu Hiding Weapons and Entities
    7 replies, posted
Hi wanna HIDE Q Menu tabs Weapons and Entities..Now I wanna hide them for all players just not Owner (me)..I don't wanna delete them just hide them..I did remove other tabs like post processing ,NPCs etc because I don't really need them so yea.I wanna just hide these from everyone else except Owner. P.S that anoying guy pls stop writing here if you're not gonna help me.
Hi, that annoying guy here. There is definitely more than one thread asking about the exact same thing you're asking for right now. gmod hide spawnmenu tabs
Yea like I didn't google...Dfq is wrong with you -_- Most of those things and codes on google are giving me errors and all of them are ways to remove them not hide them from users.
Hide spawn menu tabs? literally the first result on google
I said that I get an error and even if it works it will hide it from all players I want that only me (Owner) see it..I tried this too but it didn't work local ShowTabs = { ["#spawnmenu.content_tab"] = true//Props tab ["#spawnmenu.category.weapons"] = true//Weapons tab ["#spawnmenu.category.npcs"] = true//NPCs tab ["#spawnmenu.category.entities"] = true//Entities tab ["#spawnmenu.category.vehicles"] = true//Vehicles tab ["#spawnmenu.category.postprocess"] = true//Postprocessing tab ["#spawnmenu.category.dupes"] = true//Dupes tab ["#spawnmenu.category.saves"] = true//Saves tab } hook.Add("PostReloadToolsMenu", "Spawnerider_Remove_Tabs", function() for k,v in pairs(g_SpawnMenu.CreateMenu:GetItems()) do if !ShowTabs[v.Name] then g_SpawnMenu.CreateMenu:CloseTab(v.Tab, true) end end end)
I suggest if you aren't even going to try and help yourself that you go to gmodstore and make a job there. It's obvious from your previous posts and threads that you don't care about learning anything and that you're just coming here to be spoonfed working code. But on the off chance you do care the code you found will work fine once you fix the incredibly obvious error and change the key names in the ShowTabs table. I suggest you check how other tables are defined and how they're different from yours and read up on language.GetPhrase. This page has a few examples of proper tables for you to compare with.
For the record I've helped this guy for free just basic problem solving and he asked me to make an addon for him. As soon as I asked him to buy me a game or something in return (if he liked the addon I made) he stopped talking to me. So pretty clear this guy wants quality without paying and I'm not about that. Good luck Paco but don't ask people to make addons for you if you aren't willing to at least pay.
Given what people have said about this chap I'm closing the thread
Sorry, you need to Log In to post a reply to this thread.