VehicleColourIndexToColour
attention
La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !
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.