VehicleClient

setVehicleCustomSecondaryColour

SET_VEHICLE_CUSTOM_SECONDARY_COLOUR0x36CED73BFED89754

The GTA V native SET_VEHICLE_CUSTOM_SECONDARY_COLOUR of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleCustomSecondaryColour, in JavaScript and in Lua.

SignatureJavaScript
setVehicleCustomSecondaryColour(
  vehicle: Vehicle,
  r: number,
  g: number,
  b: number
): void
SignatureLua
setVehicleCustomSecondaryColour(
  vehicle: Vehicle,
  r: integer,
  g: integer,
  b: integer
)

Usage

JavaScript
setVehicleCustomSecondaryColour(vehicle, r, g, b);
Lua
setVehicleCustomSecondaryColour(vehicle, r, g, b)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
rintnumberinteger
gintnumberinteger
bintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1, p2, p3 are RGB values for color (255,0,0 for Red, ect)

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int r, int g, int b)
Hash
0x36CED73BFED89754

Open in the interactive natives reference