Vehicle::setColorRGB

From RAGE Multiplayer Wiki
Revision as of 04:08, 22 April 2020 by BrendonPawn (talk | contribs) (Example)

This function used for set vehicle RGB body color.

Syntax

void vehicle.setColorRGB(int r1, int g1, int b1, int r2, int g2, int b2);

Required Arguments

  • r1: Primary red color in diapason 0 - 255.
  • g1: Primary green color in diapason 0 - 255.
  • b1: Primary blue color in diapason 0 - 255.
  • r2: Secondary red color in diapason 0 - 255.
  • g2: Secondary green color in diapason 0 - 255.
  • b2: Secondary blue color in diapason 0 - 255.
let rgb1 = [215, 142, 16];
let rgb2 = [240, 240, 240];
vehicle.setColorRGB(rgb1[0], rgb1[1], rgb1[2], rgb2[0], rgb2[1], rgb2[2]);