mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Only show local player if invalid command
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user