Hi I have a resource in which a command runs an animation, when the animation ends I can not move, I and tried in various ways but do not know how please help
function createVcle(sourcePlayer, commandName, destroy)
local x,y,z = getElementPosition(sourcePlayer)
setPedAnimation ( sourcePlayer, "freeweights", "gym_free_pickup", 1000, false, false, false )
objeto = createObject( 897, x, y - 7, z + 0.3, 0, 90, 90)
setTimer(destroyElement, 6000, 1, objeto)
outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0)
end
addCommandHandler("doton",createVcle )
function stopanimacion (sourcePlayer)
setPedAnimation (sourceplayer)
end
executeCommandHandler ( doton, sourcePlayer)