refact: admin menu

This commit is contained in:
Linventif 2025-04-23 18:59:22 +00:00
parent 083aadefe3
commit baadebd517
2 changed files with 9 additions and 9 deletions

View File

@ -396,4 +396,12 @@ function gmInte.openConfigMenu(data)
end
concommand.Add("gmod_integration_admin", function() gmInte.SendNet("getConfig") end)
concommand.Add("gmi_admin", function() gmInte.SendNet("getConfig") end)
concommand.Add("gmi_admin", function() gmInte.SendNet("getConfig") end)
hook.Add("OnPlayerChat", "gmInte:OnPlayerChat:AdminCmd", function(ply, strText, bTeamOnly, bPlayerIsDead)
if ply != LocalPlayer() then return end
strText = string.lower(strText)
if strText == "/gmi" || strText == "!gmi" then
gmInte.openAdminConfig()
return true
end
end)

View File

@ -1,8 +0,0 @@
hook.Add("OnPlayerChat", "gmInte:OnPlayerChat:AdminCmd", function(ply, strText, bTeamOnly, bPlayerIsDead)
if ply != LocalPlayer() then return end
strText = string.lower(strText)
if strText == "/gmi" || strText == "!gmi" then
gmInte.openAdminConfig()
return true
end
end)