getVehicleColours
GET_VEHICLE_COLOURS0xA19435F193E081ACThe GTA V native GET_VEHICLE_COLOURS of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleColours, in JavaScript and in Lua.
getVehicleColours(vehicle: Vehicle): [
colorPrimary: number,
colorSecondary: number
]getVehicleColours(vehicle: Vehicle): integer, integerUsage
JavaScript
const [colorPrimary, colorSecondary] = getVehicleColours(vehicle);Lua
local colorPrimary, colorSecondary = getVehicleColours(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | colorPrimary | int | number | integer | output |
| 2 | colorSecondary | int | number | integer | output |
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void GET_VEHICLE_COLOURS(Vehicle vehicle, int* colorPrimary, int* colorSecondary)- Hash
0xA19435F193E081AC