Перейти к содержанию

Vehicle::setColorRGB

Материал из RAGE MP Wiki Archive
Версия от 04:41, 22 апреля 2020; imported>MrPancakers2 (Required Arguments)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This function used for set vehicle RGB body color.

Syntax

<syntaxhighlight lang="javascript"> void vehicle.setColorRGB(int r1, int g1, int b1, int r2, int g2, int b2); </syntaxhighlight>

Required Arguments

  • r1: Int Primary Red Colour [0 - 255]
  • g1: Int Primary Green Colour [0 - 255]
  • b1: Int Primary Blue Colour [0 - 255]
  • r2: Int Secondary Red Colour [0 - 255]
  • g2: Int Secondary Green Colour [0 - 255]
  • b2: Int Secondary Blue Colour [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);