Only show local player if invalid command

This commit is contained in:
ElPumpo
2018-07-18 22:14:22 +02:00
parent eb02731854
commit 8f442dc202
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ AddEventHandler('chatMessage', function(source, author, message)
if string.sub(message, 1, 1) == "/" then
CancelEvent()
TriggerClientEvent('chat:addMessage', -1, { args = { '^1SYSTEM', _U('ooc_unknown_command', message) } })
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', _U('ooc_unknown_command', message) } })
end
end)