Vehicle::setColorRGB

From RAGE Multiplayer Wiki
Revision as of 17:34, 23 September 2017 by Austin (talk | contribs)

This function used to get the vehicle RGB body color. Returns null if never set explicitly.

Syntax

Array vehicle.getColourRGB(int slot);

Required Arguments

  • slot: The color you want to get. (valid is 0 or 1)

Example

let primaryColor = vehicle.getColourRGB(0);
let secondaryColor = vehicle.getColourRGB(1); 
// primaryColor output: [ 255, 0, 0 ]

See Also

Template:Vehicle block