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

Vehicle::getColor

Материал из RAGE MP Wiki Archive
Версия от 11:33, 9 мая 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Zentorno: On the client-side, this function requires three args (red: int, green: int, blue: int), and will return an object: r,g,b


Syntax

vehicle.getColor(id);

Required Arguments

  • id: int

(0 - Primary Color, 1 - Secondary Color)

Return value

  • integer: color

Example

let primaryColor = player.vehicle.getColor(0)
let secondaryColor = player.vehicle.getColor(1)

// If the vehicle primary color was black the following would return 0
console.log(primaryColor)

See also