Jump to content

Ayuda con animaciones!


Shad

Recommended Posts

Hola! estoy haciendo un trabajo,en el que quiero que al poner un comando se ponga la animacion de cuando cj agarra el telefono y cuando termine esa inicie la de cuando esta hablando,queria saber si eso es posible ,este es el codigo q estoy usando.
Al poner /llamarubicacion inicia la animacion 2 pero se salta la 1, ayuda plis

 

function animacion1 ( source )
setPedAnimation ( source, "ped", "phone_in", -1, true, false, false )
end
addCommandHandler ( "llamarubicacion", animacion1 )


function animacion2 ( source )
    setPedAnimation ( source, "ped", "phone_talk", -1, true, false, false )
end
addCommandHandler ("llamarubicacion", animacion2)

Link to comment
  • 3 weeks later...
addCommandHandler('llamarubicacion',
	function(source,cmd,type)
		if ( type == "1" ) then
			setPedAnimation ( source, "ped", "phone_in", -1, true, false, false )
		elseif ( type == "2" ) then
    		setPedAnimation ( source, "ped", "phone_talk", -1, true, false, false )
		end
	end
)

 

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...