Shad Posted August 20, 2019 Share Posted August 20, 2019 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
root. Posted September 5, 2019 Share Posted September 5, 2019 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
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