Vehicle::setColorRGB

From RAGE Multiplayer Wiki

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: int (Primary red color in diapason 0 - 255)
  • g1: int (Primary green color in diapason 0 - 255)
  • b1: int (Primary blue color in diapason 0 - 255)
  • r2: int (Secondary red color in diapason 0 - 255)
  • g2: int (Secondary green color in diapason 0 - 255)
  • b2: int (Secondary blue color in diapason 0 - 255)


Example

Server-Side
// Sets yellow to the primary color, and white for the secondary color
vehicle.setColorRGB(215, 142, 16, 250, 250, 250);