From 98a2d421bdd2918373fdf07bb7d54cd9d6f4ad56 Mon Sep 17 00:00:00 2001 From: Linventif Date: Wed, 14 Aug 2024 13:24:27 +0000 Subject: [PATCH] add: gmod_integration_test_error && gmod_integration_screen --- lua/gmod_integration/client/cl_screenshots.lua | 1 + lua/gmod_integration/shared/sh_con.lua | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/gmod_integration/client/cl_screenshots.lua b/lua/gmod_integration/client/cl_screenshots.lua index 660b24b..e3f97b7 100644 --- a/lua/gmod_integration/client/cl_screenshots.lua +++ b/lua/gmod_integration/client/cl_screenshots.lua @@ -47,6 +47,7 @@ function gmInte.takeScreenShot() end concommand.Add("gmi_screen", gmInte.takeScreenShot) +concommand.Add("gmod_integration_screen", gmInte.takeScreenShot) hook.Add("OnPlayerChat", "gmInteChatCommands", function(ply, text, teamChat, isDead) if ply != LocalPlayer() then return end text = string.lower(text) diff --git a/lua/gmod_integration/shared/sh_con.lua b/lua/gmod_integration/shared/sh_con.lua index a25b89d..e6fea3f 100644 --- a/lua/gmod_integration/shared/sh_con.lua +++ b/lua/gmod_integration/shared/sh_con.lua @@ -1,4 +1,4 @@ -concommand.Add("gmi_test_error", function(ply, cmd, args) +local function testConError(ply, cmd, args) if ply && !ply:gmIntIsAdmin() then if SERVER then return end print("[Gmod Integration] Missing permissions to run this command") @@ -19,4 +19,7 @@ concommand.Add("gmi_test_error", function(ply, cmd, args) error("This is a test error") end end -end) \ No newline at end of file +end + +concommand.Add("gmod_integration_test_error", testConError) +concommand.Add("gmi_test_error", testConError) \ No newline at end of file