DuFraN Posted September 8, 2013 Share Posted September 8, 2013 Hola, necesito ayuda con esta función lo que pasa es que quiero que se active mediante un comando y como la función tiene un setTimer se activa sola, el setTimer es porque quiero que cambie rápido el color del cielo. function F_Drogado() setSkyGradient(math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255),math.random(0,255) ) setVehicleColor( root, math.random(0,255), math.random(0,255), math.random(0,255) ) end setTimer(F_Drogado,50,0) addCommandHandler("drogado",root,F_Drogado) Link to comment
GamerDeMTA Posted September 8, 2013 Share Posted September 8, 2013 prueba esto function F_Drogado () setSkyGradient(math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255), math.random(0,255),math.random(0,255) ) setVehicleColor( root, math.random(0,255), math.random(0,255), math.random(0,255) ) end function () setTimer(F_Drogado,50,0) end addCommandHandler("drogado", ) Link to comment
Recommended Posts