From 69abe13ab29b99b255a0c1632a7f9fd3ad9be7c0 Mon Sep 17 00:00:00 2001 From: Itokoyamato Date: Sat, 10 Oct 2020 17:12:23 +0200 Subject: [PATCH] fix(c_main): process mouth animations before goto continue --- fivem_script/tokovoip_script/src/c_main.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fivem_script/tokovoip_script/src/c_main.lua b/fivem_script/tokovoip_script/src/c_main.lua index 906501c..3822822 100644 --- a/fivem_script/tokovoip_script/src/c_main.lua +++ b/fivem_script/tokovoip_script/src/c_main.lua @@ -105,6 +105,10 @@ local function clientProcessing() local playerTalking = getPlayerData(playerServerId, "voip:talking"); + if (GetConvar("gametype") == "gta5") then + setPlayerTalkingState(player, playerServerId); + end + if (voip.serverId == playerServerId or not playerPed or not playerTalking or playerTalking == 0) then goto continue end do @@ -147,9 +151,6 @@ local function clientProcessing() userData.muted = 0; end - if (GetConvar("gametype") == "gta5") then - setPlayerTalkingState(player, playerServerId); - end usersdata[#usersdata + 1] = userData; end