Jump to content

parar animaçao


Recommended Posts

quero que  animaçao do jogador pare quando executar o comando em outro marker 

 function escada(Jogador)
        if isElementWithinMarker(Jogador, balcao2) then
		        setElementPosition(balcao2, 2413.03320, -1494.10571, 24.05586)
				destroyElement (balcao2)
                setPedRotation(Jogador, 190)			
                setElementPosition(Jogador, 2413.03320, -1494.10571, 24.05586)
				
				setPedAnimation(Jogador,"CARRY", "crry_prtial", 0.0, false, false, false) 
             
				
           
			  



								
						

		
                outputChatBox("#00FA9A[Soldador] #ffffffVoce esta soldando a peça do navio aguarde 1 minuto para terminar", Jogador, 255, 255, 255, true)					         
                 
				 
						   
       			                             
                       	 
				      
             
		
					
                        end,5000,1)	 
						 
                				  
				 
			
                setTimer( function ()
				        escada1 = createObject ( 1437, 418.099609375, -1349.2998046875, 22.60000038147, 337.99987792969, 0, 217.99072265625) 
                        escada2 = createObject ( 1437, 416.2001953125, -1346.900390625, 17.700000762939, 337.99987792969, 0, 217.99072265625)
      		            escada3 = createObject ( 1437, 414.400390625, -1344.599609375, 13, 337.99987792969, 0,217.99072265625)   
				        
                        triggerClientEvent(Jogador, "doShowProgressBar", Jogador)						
                        triggerEvent(eventorestart, root)
                end, 1000, 1)
				 end
 end
 addCommandHandler("pegar",escada)
 

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...