Nicolas ECM Posted November 13, 2013 Share Posted November 13, 2013 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) Link to comment
Castillo Posted November 13, 2013 Share Posted November 13, 2013 function createVcle ( sourcePlayer ) 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 ( function ( ) destroyElement ( objeto ) objecto = nil setPedAnimation ( sourcePlayer ) end ,6000, 1 ) outputChatBox ( "Doton Doryu Joheki", sourcePlayer, 100, 100, 0 ) end addCommandHandler ( "doton", createVcle ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now