Skip to content

Commit

Permalink
fix(c_main): process mouth animations before goto continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Itokoyamato committed Oct 10, 2020
1 parent bed182e commit 69abe13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fivem_script/tokovoip_script/src/c_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 69abe13

Please sign in to comment.