Jump to content

Bad argument @ setVehicleColor


iFoReX

Recommended Posts

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.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...