99 dance animations | lua

to put it in a menu it’s very simple you have orders registered in the client.lua like for example

example:
RegisterCommand("dance6",function(source, args)

you want to execute the command without going through the dialog then you do

ExecuteCommand (= opposite of RegisterCommand)

example for integrate it into the menu ,you do

{ label = 'Danse6', value = 'danse6' },




function(data, menu)
        local value = data.current.value




        if data.current.value == 'danse6' then
        ExecuteCommand("danse6")
        end
       

how is animation supposed to stop? O.o