> For the complete documentation index, see [llms.txt](https://mstudio-1.gitbook.io/mstudio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mstudio-1.gitbook.io/mstudio/kz-resources/editor-5/exports.md).

# Exports

| **Parameter**   | **Type**   | **Description**                           | **Example / Value**                             |
| --------------- | ---------- | ----------------------------------------- | ----------------------------------------------- |
| Resource Name   | `String`   | The exact name of the script folder       | `Kz-RadioAnim`                                  |
| Export Function | `Function` | The name of the export to be called       | `ToggleRadioAnim`                               |
| Status          | `Boolean`  | Enables or disables animations and sounds | `true` (ON) / `false` (OFF)                     |
| pma-voice Usage | `Code`     | Code snippet for the `radio.lua` file     | `exports["Kz-RadioAnim"]:ToggleRadioAnim(true)` |

{% hint style="info" %}
Follow these instructions to link the script to PMA Voice
{% endhint %}

## PMA-VOICE

{% hint style="warning" %}
File path: ..\pma-voice\client\module\radio.lua
{% endhint %}

```lua
--Replace these 2 blocks like this
RegisterCommand('+radiotalk', function()
    if GetConvarInt('voice_enableRadios', 1) ~= 1 then return end
    if isDead() then return end
    if not isRadioEnabled() then return end
    if not radioPressed then
        if radioChannel > 0 then
            addVoiceTargets(radioData, callData)
            TriggerServerEvent('pma-voice:setTalkingOnRadio', true)
            radioPressed = true
            playMicClicks(true)

            exports["Kz-RadioAnim"]:ToggleRadioAnim(true)

            CreateThread(function()
                while radioPressed do
                    if radioChannel <= 0 or isDead() or not isRadioEnabled() then
                        ExecuteCommand("-radiotalk")
                        break
                    end
                    SetControlNormal(0, 249, 1.0)
                    Wait(0)
                end
            end)
        end
    end
end, false)

RegisterCommand('-radiotalk', function()
    if radioPressed then
        radioPressed = false
        MumbleClearVoiceTargetPlayers(voiceTarget)
        addVoiceTargets(callData)
        
        exports["Kz-RadioAnim"]:ToggleRadioAnim(false)
        
        playMicClicks(false)
        TriggerServerEvent('pma-voice:setTalkingOnRadio', false)
    end
end, false)
```
