mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
34
lua/sam/menu/sh_init.lua
Normal file
34
lua/sam/menu/sh_init.lua
Normal 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
|
||||
Reference in New Issue
Block a user