From 719a08e6a8d0f1bb266a310c0804d51991d3c411 Mon Sep 17 00:00:00 2001 From: Linventif Date: Sat, 23 Sep 2023 18:23:14 +0200 Subject: [PATCH] add name & team for sync chat --- lua/gmod_integration/server/sv_main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/gmod_integration/server/sv_main.lua b/lua/gmod_integration/server/sv_main.lua index c3a0092..6e6e940 100644 --- a/lua/gmod_integration/server/sv_main.lua +++ b/lua/gmod_integration/server/sv_main.lua @@ -65,7 +65,9 @@ function gmInte.playerSay(ply, text, team) gmInte.post("/server/user/say", { ["steamID64"] = ply:SteamID64(), - ["message"] = text + ["message"] = text, + ["name"] = ply:Nick(), + ["team"] = team, } ) end