mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
move: sync chat to a custom file
This commit is contained in:
parent
0143b77db8
commit
a9f33efd4c
|
@ -21,10 +21,6 @@ function gmInte.chatAddText(data)
|
|||
chat.AddText(unpack(args))
|
||||
end
|
||||
|
||||
function gmInte.discordSyncChatPly(data)
|
||||
chat.AddText(Color(92, 105, 255), "(DISCORD) ", Color(12, 151, 12), formatName(data.name) .. ": ", Color(255, 255, 255), data.content)
|
||||
end
|
||||
|
||||
function gmInte.showTestConnection(data)
|
||||
if (data && data.id) then
|
||||
chat.AddText(Color(255, 130, 92), "[Gmod Integration] ", Color(63, 102, 63), "Connection Successfull", Color(255, 255, 255), ", server logged as '" .. data.name .. "'")
|
||||
|
|
3
lua/gmod_integration/client/cl_sync_chat.lua
Normal file
3
lua/gmod_integration/client/cl_sync_chat.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function gmInte.discordSyncChatPly(data)
|
||||
chat.AddText(Color(92, 105, 255), "(DISCORD) ", Color(12, 151, 12), formatName(data.name) .. ": ", Color(255, 255, 255), data.content)
|
||||
end
|
Loading…
Reference in New Issue
Block a user