[Revision] Surrender Animation. Type " /k "

Here is a download:
AAHU.rar (2.3 KB)

type /k

This is a modified version of @Cosharek 's ArrestAnims release.

It works for vRP and thats all I know. The original was meant for ESX. You can try it on other gamemodes or whatever and let us know on here in the comments.

You can cuff people while they are down like that and it wont mess up any animations. Once cuffed and on knees, they can still type /k and you can “help them up”(not really, just stand there and pretend) as they exit the animation.

HERE IS THE ORIGINAL

Here is a video:

Here it is on GitHub:

Install:

Drag and drop AAHU into server resources.

Add “start AAHU” into server.cfg

Done

5 Likes

very nice, ill be releasing an update in the near month or two with more anims :slight_smile:

1 Like

Sweet. looking forward to them! :smiley:

Can i change the chat command for a hot key?

1 Like

You can try this. Have NOT tested it. (0, 51) should be “E”

function loadAnimDict( dict )
    while ( not HasAnimDictLoaded( dict ) ) do
        RequestAnimDict( dict )
        Citizen.Wait( 5 )
    end
end 

Citizen.CreateThread(function()
    while true do
        Wait(0)
        local player = GetPlayerPed( -1 )
	    if ( DoesEntityExist( player ) and not IsEntityDead( player )) then 
            loadAnimDict( "random@arrests" )
            loadAnimDict( "random@arrests@busted" )
            if IsControlJustPressed(0, 51) then --------------------------------------------------------------------Change the key here
		        if ( IsEntityPlayingAnim( player, "random@arrests@busted", "idle_a", 3 ) ) then 
		    	    TaskPlayAnim( player, "random@arrests@busted", "exit", 8.0, 1.0, -1, 2, 0, 0, 0, 0 )
			        Wait (3000)
                    TaskPlayAnim( player, "random@arrests", "kneeling_arrest_get_up", 8.0, 1.0, -1, 128, 0, 0, 0, 0 )
                else
                    TaskPlayAnim( player, "random@arrests", "idle_2_hands_up", 8.0, 1.0, -1, 2, 0, 0, 0, 0 )
                    Wait (4000)
                    TaskPlayAnim( player, "random@arrests", "kneeling_arrest_idle", 8.0, 1.0, -1, 2, 0, 0, 0, 0 )
			        Wait (500)
			        TaskPlayAnim( player, "random@arrests@busted", "enter", 8.0, 1.0, -1, 2, 0, 0, 0, 0 )
			        Wait (1000)
                    TaskPlayAnim( player, "random@arrests@busted", "idle_a", 8.0, 1.0, -1, 9, 0, 0, 0, 0 )
                end 
            end    
        end
    end
end)

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if IsEntityPlayingAnim(GetPlayerPed(PlayerId()), "random@arrests@busted", "idle_a", 3) then
			DisableControlAction(1, 140, true)
			DisableControlAction(1, 141, true)
			DisableControlAction(1, 142, true)
			DisableControlAction(0,21,true)
		end
	end
end)
4 Likes

Ty!!!

Thnx bro ! this works all fine with arrow up