This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

34
lua/sam/menu/sh_init.lua Normal file
View File

@@ -0,0 +1,34 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
if SAM_LOADED then return end
require("sui")
sam.command.new("menu")
:Help("Open admin mod menu")
:MenuHide()
:DisableNotify()
:OnExecute(function(ply)
sam.netstream.Start(ply, "OpenMenu")
end)
:End()
if CLIENT then
sam.netstream.Hook("OpenMenu", function()
sam.menu.open_menu()
end)
end
if SERVER then
for _, f in ipairs(file.Find("sam/menu/tabs/*.lua", "LUA")) do
sam.load_file("sam/menu/tabs/" .. f)
end
end