local QBCore = exports['qb-core']:GetCoreObject()

RegisterNetEvent('pappu_radial:addRadio1', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(1)
    end
end)

RegisterNetEvent('pappu_radial:addRadio2', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(2)
    end
end)

RegisterNetEvent('pappu_radial:addRadio3', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(3)
    end
end)

RegisterNetEvent('pappu_radial:addRadio4', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(4)
    end
end)

RegisterNetEvent('pappu_radial:addRadio5', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(5)
    end
end)

RegisterNetEvent('pappu_radial:addRadio6', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(6)
    end
end)

RegisterNetEvent('pappu_radial:addRadio7', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(7)
    end
end)

RegisterNetEvent('pappu_radial:addRadio8', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(8)
    end
end)

RegisterNetEvent('pappu_radial:addRadio9', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(9)
    end
end)

RegisterNetEvent('pappu_radial:addRadio10', function()
    local hasItem = QBCore.Functions.HasItem('radio')
    if hasItem then
        exports['pma-voice']:setRadioChannel(10)
    end
end)