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