VehicleClient3 outputs

getVehicleCustomSecondaryColour

GET_VEHICLE_CUSTOM_SECONDARY_COLOUR0x8389CD56CA8072DC

The 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.

SignatureJavaScript
getVehicleCustomSecondaryColour(vehicle: Vehicle): [
  r: number,
  g: number,
  b: number
]
SignatureLua
getVehicleCustomSecondaryColour(vehicle: Vehicle): integer, integer, integer

Usage

JavaScript
const [r, g, b] = getVehicleCustomSecondaryColour(vehicle);
Lua
local r, g, b = getVehicleCustomSecondaryColour(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

3 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1rintnumberintegeroutput
2gintnumberintegeroutput
3bintnumberintegeroutput

Reference

Namespace
Vehicle VEHICLE
In the game
void GET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int* r, int* g, int* b)
Hash
0x8389CD56CA8072DC

Open in the interactive natives reference