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