From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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


Array vehicle.getColorRGB(int slot);

Required Arguments

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


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

See Also

Template:Vehicle block