mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
Merge pull request #34 from vecchiotom/master
fix names with color codes coloring the whole console output.
This commit is contained in:
@@ -18,7 +18,7 @@ AddEventHandler('_chat:messageEntered', function(author, color, message)
|
||||
TriggerClientEvent('chatMessage', -1, author, { 255, 255, 255 }, message)
|
||||
end
|
||||
|
||||
print(author .. ': ' .. message)
|
||||
print(author .. '^7: ' .. message .. '^7')
|
||||
end)
|
||||
|
||||
AddEventHandler('__cfx_internal:commandFallback', function(command)
|
||||
|
||||
@@ -20,7 +20,7 @@ end)
|
||||
AddEventHandler('playerConnecting', function(name, setReason)
|
||||
local cv = GetConvarInt('sv_maxclients', 32)
|
||||
|
||||
print('Connecting: ' .. name)
|
||||
print('Connecting: ' .. name .. '^7')
|
||||
|
||||
if playerCount >= cv then
|
||||
print('Full. :(')
|
||||
|
||||
Reference in New Issue
Block a user