Arsilex Posted July 1, 2012 Posted July 1, 2012 Hola tengo un problema con esa funcion en mi script puse que se cree un ped y despues al clickearlo salga un gui tal tal pero cuando apretó sobre el boton del style no me cambia el style el boton es asi (Es la fucion del boton cuando apreto eso se pasa a serverside con un triggerserver pero no me cambia de estilo (tampoco sale nada en el debug 3) function Krt1( thePlayer ) if ( thePlayer ) then local status = setPlayerFightingStyle ( thePlayer, 6 ) if ( not status ) then outputConsole ( "No has logrado aprender nada.", thePlayer ) end end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1)
Alexs Posted July 1, 2012 Posted July 1, 2012 function Krt1( thePlayer ) if ( thePlayer ) then setPlayerFightingStyle ( thePlayer, 6 ) else outputConsole ( "No has logrado aprender nada.", thePlayer ) end end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1)
Arsilex Posted July 1, 2012 Author Posted July 1, 2012 function Krt () triggerServerEvent ( "onKrt", getRootElement() ) end
Castillo Posted July 1, 2012 Posted July 1, 2012 -- client side: function Krt () triggerServerEvent ( "onKrt", localPlayer ) end -- server side: function Krt1( ) local status = setPlayerFightingStyle ( source, 6 ) if ( not status ) then outputConsole ( "No has logrado aprender nada.", source) end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1)
Arsilex Posted July 1, 2012 Author Posted July 1, 2012 añadi eso solid y nada sigue igual no sale nada en debug y no me cambia de estilo
Recommended Posts