From ea15d7ef6f9aaf322dfdd168eab260ed8e0191b4 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Tue, 31 Dec 2019 22:02:48 -0600 Subject: [PATCH] Don't: show the next cmd in array --- fac_chat/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fac_chat/init.lua b/fac_chat/init.lua index 31b32db..05fec75 100644 --- a/fac_chat/init.lua +++ b/fac_chat/init.lua @@ -126,11 +126,14 @@ end function factions.register_command(cmd_name, cmd) local cmd_type = type(cmd_name) + local next = false if cmd_type == "string" then register_command(cmd_name, cmd) elseif cmd_type == "table" then for k, v in pairs(cmd_name) do + cmd.dont_show_in_help = next register_command(v, cmd) + next = true end end end