From 0cc7a7fc84eae57f7b3b049fea68b7311ea1a801 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sat, 10 Apr 2021 18:31:33 +0200 Subject: [PATCH] test voice --- ReallifeGamemode.Client/Gui/nametags.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ReallifeGamemode.Client/Gui/nametags.ts b/ReallifeGamemode.Client/Gui/nametags.ts index 7fee2fc4..298fe217 100644 --- a/ReallifeGamemode.Client/Gui/nametags.ts +++ b/ReallifeGamemode.Client/Gui/nametags.ts @@ -33,6 +33,13 @@ export default function customNametags() { const graphics = mp.game.graphics; const screenRes = graphics.getScreenResolution(0, 0); + var localPlayer: any = mp.players.local; + + var voiceActive = localPlayer.isVoiceActive; + var isTalking = localPlayer.isPlayerTalking; + + mp.gui.chat.push("voiceActive = " + voiceActive + ", isTalking =" + isTalking); + nametags.forEach(nametag => { let [player, x, y, distance] = nametag;