HUD Mic status pma-voice

Let’s say I have a hud script with pma-voice configured. I’m trying to force the microphone status to change in hud, but the microphone image is red. The microphone is working. How to fix this problem?
Hud script:
RegisterNetEvent(‘pma-voice:setTalkingMode’)
AddEventHandler(‘pma-voice:setTalkingMode’, function(voiceMode)
print(‘Received voiceMode:’, voiceMode) – debug test
SendNUIMessage({ type=“setstatus”, statustype = “miclevel”, value = voiceMode})
end)
html:

<span :style="positionsData['mic'] || ''" data-type="mic"
                            v-if="Muted"
                            v-html="GetSvg('muted')"></span>
                        <span :style="positionsData['mic'] || ''" data-type="mic"
                            v-if="!statusData.talking && !Muted  || !statusData.talking) "
                            v-html="GetSvg('mic')"></span>
                        <span :style="positionsData['mic'] || ''" data-type="mic"
                            v-if="statusData.mic_level == '1' && statusData.talking && !Muted ||  statusData.mic_level == '1' && statusData.talking) "
                            v-html="GetSvg('mic-low')"></span>
                        <span :style="positionsData['mic'] || ''" data-type="mic"
                            v-if="statusData.mic_level == '2' && statusData.talking && !Muted || statusData.mic_level == '2' && statusData.talking)"
                            v-html="GetSvg('mic-mid')"></span>
                        <span :style="positionsData['mic'] || ''" data-type="mic"
                            v-if="statusData.mic_level == '3' && statusData.talking && !isMuted || statusData.mic_level == '3' && statusData.talking) "
                            v-html="GetSvg('mic-high')"></span>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.