Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

fix names with color codes coloring the whole console output. #34

Merged
merged 2 commits into from
Oct 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/[system]/chat/sv_chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -76,4 +76,4 @@ AddEventHandler('onServerResourceStart', function(resName)
for _, player in ipairs(GetPlayers()) do
refreshCommands(player)
end
end)
end)
2 changes: 1 addition & 1 deletion resources/[system]/hardcap/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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. :(')
Expand Down