VehicleClient

getVehicleModColor2Name

GET_VEHICLE_MOD_COLOR_2_NAME0x4967A516ED23A5A1

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

SignatureJavaScript
getVehicleModColor2Name(vehicle: Vehicle): string
SignatureLua
getVehicleModColor2Name(vehicle: Vehicle): string

Usage

JavaScript
const text = getVehicleModColor2Name(vehicle);
Lua
local text = getVehicleModColor2Name(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

string JavaScript string, Lua string

Notes

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

Returns a string which is the codename of the vehicle's currently selected secondary color

Reference

Namespace
Vehicle VEHICLE
In the game
const char* GET_VEHICLE_MOD_COLOR_2_NAME(Vehicle vehicle)
Hash
0x4967A516ED23A5A1

Open in the interactive natives reference