RegisterNUICallback("setPlayerTalking", function(data)
voip.talking = tonumber(data.state);
if (voip.talking == 1) then
setPlayerData(voip.serverId, "voip:talking", 1, true);
TriggerEvent('adiss-hud:setTalkingState', true)
PlayFacialAnim(GetPlayerPed(PlayerId()), "mic_chatter", "mp_facial");
else
setPlayerData(voip.serverId, "voip:talking", 0, true);
TriggerEvent('adiss-hud:setTalkingState', false)
PlayFacialAnim(PlayerPedId(), "mood_normal_1", "facials@gen_male@base");
end
end)