mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
34 lines
682 B
Lua
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 |