Files
wnsrc/lua/sam/menu/sh_init.lua
lifestorm 94063e4369 Upload
2024-08-04 22:55:00 +03:00

34 lines
682 B
Lua

--[[
| 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