Theme editor

Radio Animation

Random threads

Admin

FiveM Pro
Joined
Oct 11, 2024
Messages
155
Reaction score
-1,353
Points
93
Credits
0
Thread owner
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:
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.

View attachment 3441
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 )
1111111 1 11 1 11
 

Latest threads

Featured content

Latest threads

Back
Top