Garry's Mod

[TUTORIAL] Remove sections from spawn menu

Submitted by heymynameischeval, , Thread ID: 102930

Thread Closed

RE: [TUTORIAL] Remove sections from spawn menu

#11
sorry for bump but does anyone know how to make this like admin only? something like -include( "contenttypes/entities.lua" ) if (LocalPlayer():IsUserGroup("superadmin") == true- this doesn't work but if anyone knows would help me alot! <3

RE: [TUTORIAL] Remove sections from spawn menu

#12
04-02-2020, 04:31 AM
Piehthyte Wrote:
I know I'm bumping on an old post but I've written a lua script for this without having to go in the gamemodes folder.

It's literally a one liner ;p

spawnmenu.GetCreationTabs()["#spawnmenu.category.dupes"] = nil

And where I should put it? No matter where I try I get error that spawnmenu is nil.

RE: [TUTORIAL] Remove sections from spawn menu

#13
04-02-2020, 04:31 AM
Piehthyte Wrote:
I know I'm bumping on an old post but I've written a lua script for this without having to go in the gamemodes folder.

It's literally a one liner ;p

spawnmenu.GetCreationTabs()["#spawnmenu.category.dupes"] = nil

Not working for me

RE: [TUTORIAL] Remove sections from spawn menu

#14
I don't get why one would want to remove these tabs from the spawn menu? Perhaps for situations like people not spawning dupes or spawning npcs in DarkRP? That's the only practical use I see for it.
If I'm missing something feel free to let me know.ss

RE: [TUTORIAL] Remove sections from spawn menu

#15
thanks for that, i will use this method on my server, thanks

Users browsing this thread: 1 Guest(s)