warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
VehicleColourIndexToColour
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Convert a car colour index to a HEX colour (RGBA).
Parameters
Name | Description |
---|---|
index | Vehicle colour. |
alpha = 0xFF | Alpha channel. |
Examples
new colour = VehicleColourIndexToColour(3, 0xFF);
Related Functions
- GetRandomVehicleColourPair: Get random colour indexes that are valid for the given vehicle model.
- GetVehicleColours: Gets the vehicle colours.