99 dance animations | lua

Hello everyone, are you ready to shake your ass?
You have 99 dance animations that you can use to dance with friends or simply enjoy your movements.
Click Video

Commands:
from /dance1 to /dance99

GitHub

Direct download: shtin_animation.rar (1.7 KB)

Installation
Just put in server resources and run in file .cfg

Giving up everything. I will not help you with the installation, I will not help you in changing, I will not do anything, because this is a simple script.
Do not restart this resource without my consent, thank you!

15 Likes

Is there a possibility of this being able to be used through a menu?
If there is you dont have to do it im just wondering, otherwise… Nice script :slight_smile:

I wanted to do this with NativeUI, but I thought that he was simply not needed, since people already have a million different menus :smiley:

Yeah lol, maybe an option for a menu?

Best Script trailer video man. Really good video hahhahahah

1 Like

Maybe I will add support NativeUI in the second version, if you really need it

What is music name on youtube video?

SHTIN

1 Like

yes pls do it or a support for a animations menu

Baby Shark :face_with_hand_over_mouth:

very nice release bro thx for sharing and in future it would be nice vi Native UI to see this

1 Like

Very cool

1 Like

My disappointment when I watched the video, and you didn’t use this animation. :frowning:

anim@mp_player_intcelebrationmale@find_the_fish find_the_fish

1 Like

You could greatly improve this script by taking the following repetitive code and putting it in a function. Then calling it whenever needed.

function PlayAnimation (ad, anim)
if ( DoesEntityExist( player ) and not IsEntityDead( player )) then
    loadAnimDict( ad )
    if ( IsEntityPlayingAnim( player, ad, anim, 3 ) ) then 
        TaskPlayAnim( player, ad, "exit", 3.0, 1.0, -1, 01, 0, 0, 0, 0 )
        ClearPedSecondaryTask(player)
    else
        TaskPlayAnim( player, ad, anim, 3.0, 1.0, -1, 01, 0, 0, 0, 0 )
    end       
end
end
1 Like

you had to use baby shark in this? -.-

serious note: good release, my dude. :call_me_hand: you saved me the trouble of doing it :joy:

1 Like

I’ll add it, it’s really funny :smile:

is it just me… but how come when doing a dance. I can just walk forward and it cancels the dance animation? ped is frozen and then i need to manually stop the animation

love this Script now the party will never die.

@greybeardactual i like it tbh beeing frozen in place is not really good in Rp situations.

i just realized i typed it wrong. I am hoping that a forward walking motion would cancel the dance. Instead it locks everything and i can to then either retype the command or go into my vMenu and cancel emote. Would much rather be able to walk forward and it cancels the dance… Just an idea!

3 Likes

Added dancing function. 1200 row deleted.

task sequences are pretty neat

RegisterCommand("dance",function(source, args)

	local ad1 = "anim@amb@nightclub@dancers@crowddance_facedj@"
	local ad2 = "anim@amb@nightclub@dancers@club_ambientpedsfaces@"
	local player = GetPlayerPed( -1 )
	
	if ( DoesEntityExist( player ) and not IsEntityDead( player )) then 
		loadAnimDict(ad1)
		loadAnimDict(ad2)
		if ( IsEntityPlayingAnim( player, ad2, "mood_dancing_medium_4", 3 ) ) then 
			ClearPedTasks(player)
		else
			local _, sequence1 = OpenSequenceTask(0)
			TaskPlayAnim(player, ad2, "mood_dancing_medium_4", 8.0, -8.0, -1, 33, 0.0, 0, 0, 0)
			SetSequenceToRepeat(sequence1, 1)
			CloseSequenceTask(sequence1)
			TaskPerformSequence(player, sequence1)
			ClearSequenceTask(sequence1)
			local _, sequence = OpenSequenceTask(0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^1", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^2", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^3", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^4", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^5", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_15_v2_female^6", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^1", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^2", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^3", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^4", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^5", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			TaskPlayAnim(0, ad1, "hi_dance_facedj_17_v2_female^6", 8.0, -8.0, -1, 0, 0.0, 0, 0, 0)
			SetSequenceToRepeat(sequence, 1)
			CloseSequenceTask(sequence)
			TaskPerformSequence(player, sequence)
			ClearSequenceTask(sequence)
			Wait (500)
		end     
	end
end, false)

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

entering the command again cancels it so enjoy