Welcome to FiveM Scripts, MLOs & Server Files – Toxic FiveM

Toxic QB V3.2 Server Files

Premium members can download it for free.

Toxic PVP V4 Server Files

Premium members can download it for free.

400+ Unbranded Vehicles 2025

Premium members can download it for free.

FiveMCode FiveM - Radio Animation Script (Simulate Radio Talk, Free Code)

Random threads

Framework
  1. ESX
  2. QBCORE
  3. VRP
  4. STANDALONE
Enhance your FiveM server's immersion with our free Radio Animation Script. Ideal for PvP servers or radio script users, it triggers a radio talk animation on key press and stops on release. Paste into client & restart.

radio animation.webp

Code:
local holstered = true



-- RADIO ANIMATIONS --

Citizen.CreateThread(function()
while true do
Citizen.Wait( 0 )
local ped = PlayerPedId()
if DoesEntityExist( ped ) and not IsEntityDead( ped )  then
    if not IsPauseMenuActive() then
        loadAnimDict( "random@arrests" )
        if IsControlJustReleased( 0, 137 ) then -- INPUT_CHARACTER_WHEEL (LEFT ALT)
            TriggerServerEvent('InteractSound_SV:PlayOnSource', 'off', 0.1)
            ClearPedTasks(ped)
            SetEnableHandcuffs(ped, false)
        else
            if IsControlJustPressed( 0, 137 )  and not IsPlayerFreeAiming(PlayerId()) then -- INPUT_CHARACTER_WHEEL (LEFT ALT)
                TriggerServerEvent('InteractSound_SV:PlayOnSource', 'on', 0.1)
                TaskPlayAnim(ped, "random@arrests", "generic_radio_enter", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
                SetEnableHandcuffs(ped, true)
            elseif IsControlJustPressed( 0, 137 )  and IsPlayerFreeAiming(PlayerId()) then -- INPUT_CHARACTER_WHEEL (LEFT ALT)
                TriggerServerEvent('InteractSound_SV:PlayOnSource', 'on', 0.1)
                TaskPlayAnim(ped, "random@arrests", "radio_chatter", 8.0, 2.0, -1, 50, 2.0, 0, 0, 0 )
                SetEnableHandcuffs(ped, true)
            end
            if IsEntityPlayingAnim(GetPlayerPed(PlayerId()), "random@arrests", "generic_radio_enter", 3) then
                DisableActions(ped)
            elseif IsEntityPlayingAnim(GetPlayerPed(PlayerId()), "random@arrests", "radio_chatter", 3) then
                DisableActions(ped)
            end
        end
    end
end
end
end )
 
Last edited by a moderator:
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top