iFoReX Posted September 1, 2012 Posted September 1, 2012 local colores = { { 255, 0, 0 }, { 0, 255, 0 }, { 0, 0, 255 }, { 255, 255, 0 }, { 0, 255, 255 }, { 255, 255, 0 }, { 0, 0, 0 } } setTimer ( function ( ) r, g, b = unpack ( colores [ math.random ( #colores ) ] ) end ,2000, 0 ) addEventHandler("onClientResourceStart",resourceRoot,function() local elVehiculo = getPedOccupiedVehicle(getLocalPlayer()) setVehicleColor(elVehiculo,r,g,b) end ) no le veo nada malo. elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Alexs Posted September 1, 2012 Posted September 1, 2012 Pensé que los colores aceptables eran estos: https://wiki.multitheftauto.com/wiki/SetVehicleColor ReturnsReturns true if vehicle's color was set, false if an invalid vehicle or invalid colors were specified. Developer @ MYVAL
Renkon Posted September 1, 2012 Posted September 1, 2012 porque el timer no se ejecuta nunca... y no hay variables r g y b entonces
iFoReX Posted September 1, 2012 Author Posted September 1, 2012 lol el timer se ejecuta cada 2 segundos repetidamente. elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Recommended Posts