DuFraN Posted September 8, 2013 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)
GamerDeMTA Posted September 8, 2013 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", )
Recommended Posts