diff --git a/resources/[gameplay]/chat/sv_chat.lua b/resources/[gameplay]/chat/sv_chat.lua index aa16c3445..c1bbef0c4 100644 --- a/resources/[gameplay]/chat/sv_chat.lua +++ b/resources/[gameplay]/chat/sv_chat.lua @@ -214,8 +214,10 @@ end) AddEventHandler('__cfx_internal:commandFallback', function(command) local name = GetPlayerName(source) - -- route the message as if it were a /command - routeMessage(source, name, '/' .. command, nil, true) + if (GetConvarInt('chat_showMissingCommands', 1)~=0) then + -- route the message as if it were a /command + routeMessage(source, name, '/' .. command, nil, true) + end CancelEvent() end) @@ -290,4 +292,4 @@ end) AddEventHandler('onResourceStop', function(resName) unregisterHooks(resName) -end) \ No newline at end of file +end)