Vehicle::getPaint

From RAGE Multiplayer Wiki
Revision as of 13:18, 1 September 2019 by Paradox (talk | contribs)

Syntax

vehicle.getPaint(id);

Required Arguments

  • id: int

(0 - Primary Color, 1 - Secondary Color)

Return value

  • integer: color

Example

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

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

See also