

Add( "spawnmenu_reload ", CreateSpawnMenu ) Add( "OnGamemodeLoaded ", "CreateSpawnMenu ", CreateSpawnMenu )Ĭoncommand. Hook to create the spawnmenu at the appropriate time (when all sents and sweps are loaded) Add the tabs to the tool menu before trying We add the gamemode tool menu categories first This ensures that the default tabs are always They're added first in sandbox so they're always first are the Main/Postprocessing/Options tabs. If we have an old spawn menu remove it. Run( "SpawnMenuEnabled " ) ) then return end Register( "SpawnMenu ", PANEL, "EditablePanel " ) HorizontalDivider: SetLeftWidth( ratio * divWnew ) At this size we can't spare any space for emptiness If ( IsValid( g_ContextMenu ) & g_ContextMenu: IsVisible() ) then If the context menu is open, try to close it. HorizontalDivider )įunction PANEL:OpenCreationMenuTab( name ) HorizontalDivider: SetRight( nil ) - What an ugly hack ToolToggle: SetMaterial( "gui/spawnmenu_toggle_back " ) CreateMenu: Dock( NODOCK ) - What an ugly hack

ToolToggle: SetMaterial( "gui/spawnmenu_toggle " ) HorizontalDivider: SetRightMin( 460 ) end HorizontalDivider: SetCookieName( "SpawnMenuDiv " ) HorizontalDivider: SetLeftWidth( ScrW() ) - It will be automatically resized by DHorizontalDivider to account for GetRightMin/GetLeftMin You're all set! Just get on the server and configure everything to your liking!īe sure to all check out the example from the link above, in-case you're ever stuck.Local spawnmenu_border = CreateConVar( "spawnmenu_border ", "0.1 ", )

Replace YOURKEYGOESHERE with your authkey (Get one from here: )Ĥ. Replace WORKSHOPID with the ID of the collection (Should be something like this: 238472974, you could also use this collection's ID which is: 299114696)ģ. Add the following parameter to your server startup command-line: "+host_workshop_collection WORKSHOPID -authkey YOURKEYGOESHERE"Ģ. SUBSCRIBING TO THESE MIGHT NOT CHANGE ANYTHING ON YOUR SIDE, BUT BE MY GUEST IF YOU WANT TO DOWNLOAD THEM.ġ. YOU MAY SUBSCRIBE TO THESE ADDONS IF YOU'D LIKE, BUT THESE FILES ARE MEANT FOR SERVERS ONLY. Every DarkRP addon a server should need, minus cars (which are unnecessary on some maps).Ĭredits to Skull from SkullRP for helping create the majority of this list.
